mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
Turn off aws and azure testing via NO_AWS env.
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>
This commit is contained in:
parent
387b713d79
commit
f16238607d
3 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,7 @@ before_install:
|
|||
- gem --version
|
||||
- bundle --version
|
||||
env:
|
||||
- SLOW=1
|
||||
- SLOW=1 NO_AWS=1
|
||||
- CI_ENABLE_COVERAGE=true SLOW=1
|
||||
script: bundle exec rake $SUITE
|
||||
matrix:
|
||||
|
@ -31,7 +31,7 @@ matrix:
|
|||
- os: osx
|
||||
env: CI_ENABLE_COVERAGE=true SLOW=1
|
||||
- os: linux
|
||||
env: SLOW=1
|
||||
env: SLOW=1 NO_AWS=1
|
||||
include:
|
||||
- rvm: 2.6.3
|
||||
- rvm: 2.5.5
|
||||
|
|
|
@ -3,6 +3,7 @@ require "singleton"
|
|||
require "inspec/objects/input"
|
||||
require "inspec/secrets"
|
||||
require "inspec/exceptions"
|
||||
require "inspec/plugin/v2"
|
||||
|
||||
module Inspec
|
||||
# The InputRegistry's responsibilities include:
|
||||
|
|
|
@ -2,7 +2,7 @@ require "inspec/resource"
|
|||
|
||||
# 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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue