Skip to content

Commit

Permalink
Turn off aws and azure testing via NO_AWS env.
Browse files Browse the repository at this point in the history
This massively speeds up our testing, shaving our functionals by a
third (639s -> 423s). We can realize this speedup either by setting
the env or by jettisoning aws and azure into their own separately
tested gems.

This is currently turned off for travis just for demonstration
purposes.

Signed-off-by: Ryan Davis <zenspider@chef.io>
  • Loading branch information
zenspider committed Jun 10, 2019
1 parent d6f11ad commit b6390de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ before_install:
env:
- SLOW=1
- CI_ENABLE_COVERAGE=true SLOW=1
- NO_AWS=1
script: bundle exec rake $SUITE
matrix:
fast_finish: true
Expand Down
2 changes: 1 addition & 1 deletion lib/inspec/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Detect if we are running the stripped-down inspec-core
# This relies on AWS being stripped from the inspec-core gem
inspec_core_only = !File.exist?(File.join(File.dirname(__FILE__), '..', 'resource_support', 'aws.rb'))
inspec_core_only = ENV['NO_AWS'] || !File.exist?(File.join(File.dirname(__FILE__), '..', 'resource_support', 'aws.rb'))

require 'rspec/matchers'

Expand Down

0 comments on commit b6390de

Please sign in to comment.