summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-20 10:40:03 -0800
committerTim Smith <tsmith@chef.io>2017-12-20 10:40:03 -0800
commit3533dcb85c2698bc45166d9009fdc577385cd6ce (patch)
tree96f1cb488e561845a7c7644cacc2ae04e15d99f5
parent8cdd87b19f9b2431189fbd661ede7dc6ac421d51 (diff)
downloadchef-3533dcb85c2698bc45166d9009fdc577385cd6ce.tar.gz
Break out unit/integration/functional tests in travis and test chef-config
Add the chef-config unit tests to the unit testing group Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.travis.yml42
-rw-r--r--tasks/rspec.rb2
2 files changed, 37 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 1c8724b44f..fd8f8d33f6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,15 +31,45 @@ env:
matrix:
include:
- - rvm: 2.3.5
+ - env:
+ INTEGRATION_SPECS_23: 1
+ rvm: 2.3.5
sudo: true
- script: sudo -E $(which bundle) exec rake spec;
- # also remove integration / external tests
+ script: sudo -E $(which bundle) exec rake spec:integration;
bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
- - rvm: 2.4.2
+ - env:
+ INTEGRATION_SPECS_24: 1
+ rvm: 2.4.2
sudo: true
- script: sudo -E $(which bundle) exec rake spec;
- # also remove integration / external tests
+ script: sudo -E $(which bundle) exec rake spec:integration;
+ bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
+ - env:
+ FUNCTIONAL_SPECS_23: 1
+ rvm: 2.3.5
+ sudo: true
+ script: sudo -E $(which bundle) exec rake spec:functional;
+ bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
+ - env:
+ FUNCTIONAL_SPECS_24: 1
+ rvm: 2.4.2
+ sudo: true
+ script: sudo -E $(which bundle) exec rake spec:functional;
+ bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
+ - env:
+ UNIT_SPECS_23: 1
+ rvm: 2.3.5
+ sudo: true
+ script:
+ - sudo -E $(which bundle) exec rake spec:unit;
+ - sudo -E $(which bundle) exec rake component_specs
+ bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
+ - env:
+ UNIT_SPECS_24: 1
+ rvm: 2.4.2
+ sudo: true
+ script:
+ - sudo -E $(which bundle) exec rake spec:unit;
+ - sudo -E $(which bundle) exec rake component_specs
bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
- env:
CHEFSTYLE: 1
diff --git a/tasks/rspec.rb b/tasks/rspec.rb
index 616a68f09e..848c50eb40 100644
--- a/tasks/rspec.rb
+++ b/tasks/rspec.rb
@@ -25,7 +25,7 @@ CHEF_ROOT = File.join(File.dirname(__FILE__), "..")
begin
require "rspec/core/rake_task"
- desc "Run specs for Chef's Components"
+ desc "Run specs for Chef's Components (chef-config)"
task :component_specs do
Dir.chdir("chef-config") do
Bundler.with_clean_env do