Skip to content

Commit

Permalink
Merge pull request #777 from calabash/feature/limit-travis-testing
Browse files Browse the repository at this point in the history
Travis: limit rspec to unit tests
  • Loading branch information
jmoody committed May 22, 2015
2 parents ab36ce0 + f6492b4 commit b773bcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions calabash-cucumber/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ Bundler::GemHelper.install_tasks

begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
task :test => :spec
RSpec::Core::RakeTask.new(:spec)

RSpec::Core::RakeTask.new(:unit) do |task|
task.pattern = 'spec/lib/**{,/*/**}/*_spec.rb'
end
rescue LoadError => _
end


begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
Expand Down
3 changes: 1 addition & 2 deletions script/ci/travis/rspec-ci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

working_directory = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'calabash-cucumber'))


Dir.chdir working_directory do

do_system('bundle exec rake spec',
do_system('bundle exec rake unit',
{:pass_msg => 'rspec tests passed',
:fail_msg => 'rspec tests failed'})

Expand Down

0 comments on commit b773bcb

Please sign in to comment.