diff --git a/.travis.yml b/.travis.yml index d94a3f4f8..34cd6d44c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/lib/inspec/input_registry.rb b/lib/inspec/input_registry.rb index 5cf035956..96f39b188 100644 --- a/lib/inspec/input_registry.rb +++ b/lib/inspec/input_registry.rb @@ -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: diff --git a/lib/inspec/resources.rb b/lib/inspec/resources.rb index 3cefacfc4..4f453f0d1 100644 --- a/lib/inspec/resources.rb +++ b/lib/inspec/resources.rb @@ -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"