Skip to content

Commit

Permalink
Add switch to exclude tests which need deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tawan committed Feb 5, 2016
1 parent 05b2cf8 commit d806788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ rvm:
- "2.2"

script:
- 'SPEC_ALL=${TRAVIS_PULL_REQUEST} bundle exec rspec spec'
- 'EXCEPT_DEPLOYED=$(echo $TRAVIS_PULL_REQUEST) bundle exec rspec spec'
2 changes: 1 addition & 1 deletion spec/integration/standard_scenarios_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'
require 'timeout'

describe "standard scenarios", slow: true do
describe "standard scenarios", slow: true, deployed: true do
let(:random_string) { SecureRandom.hex }

before(:all) do
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

RSpec.configure do |config|
config.filter_run_excluding slow: true if ENV['SPEC_ALL'] != 'true'
config.filter_run_excluding deployed: true if ENV['EXCEPT_DEPLOYED'] != 'true'
config.expect_with :rspec do |c|
c.syntax = :expect
end
Expand Down

0 comments on commit d806788

Please sign in to comment.