diff options
author | Jaymala Sinha <jsinha@chef.io> | 2019-04-12 14:58:09 -0400 |
---|---|---|
committer | Jaymala Sinha <jsinha@chef.io> | 2019-04-12 22:28:57 -0400 |
commit | 7a35887101adc2301b541c10eaba5b955fee9822 (patch) | |
tree | eae9b0281ec177fa8c24c9650f9244322b7637eb | |
parent | 04a7bc8fc98d456e4b9eed2d42713b6577ea628b (diff) | |
download | chef-7a35887101adc2301b541c10eaba5b955fee9822.tar.gz |
Add more verification tests
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
-rw-r--r-- | .expeditor/verify.pipeline.yml | 151 | ||||
-rwxr-xr-x[-rw-r--r--] | scripts/bk_tests/bk_install.sh | 1 |
2 files changed, 150 insertions, 2 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index 2987928f01..114e6d30b5 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -7,6 +7,7 @@ steps: - label: "Integration Specs :ruby: 2.6" commands: - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir; bundle install --without ci docgen guard integration maintenance omnibus_package --frozen - bundle exec rake spec:integration expeditor: executor: @@ -15,10 +16,12 @@ steps: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist - INTEGRATION_SPECS_26=1 + - BUNDLE_GEMFILE=$PWD/Gemfile - label: "Functional Specs :ruby: 2.6" commands: - /workdir/scripts/bk_tests/bk_install.sh + - cd /workdir; bundle install --without ci docgen guard integration maintenance omnibus_package --frozen - bundle exec rake spec:functional expeditor: executor: @@ -31,7 +34,8 @@ steps: - label: "Unit Specs :ruby: 2.6" commands: - /workdir/scripts/bk_tests/bk_install.sh - - bundle exec rake spec:unit; + - bundle install --without ci docgen guard integration maintenance omnibus_package --frozen + - bundle exec rake spec:unit - bundle exec rake component_specs expeditor: executor: @@ -40,3 +44,148 @@ steps: - FORCE_FFI_YAJL=ext - CHEF_LICENSE=accept-no-persist - UNIT_SPECS_26=1 + +- label: "Chefstyle :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec rake style + expeditor: + executor: + docker: + environment: + - CHEFSTYLE=1 + +- label: "Test chef-sugar gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test sethvargo/chef-sugar master rake + expeditor: + executor: + docker: + environment: + - TEST_GEM=sethvargo/chef-sugar + +- label: "Test chef-zero gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test chef/chef-zero master rake pedant + expeditor: + executor: + docker: + environment: + - TEST_GEM=chef/chef-zero + - PEDANT_OPTS=--skip-oc_id + - CHEF_FS=true + +- label: "Test cheffish gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test chef/cheffish master rake spec + expeditor: + executor: + docker: + environment: + - TEST_GEM=chef/cheffish + +- label: "Test chefspec gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test chefspec/chefspec master rake + expeditor: + executor: + docker: + environment: + - TEST_GEM=chefspec/chefspec + +- label: "Test poise/halite gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test poise/halite master rake spec + expeditor: + executor: + docker: + environment: + - TEST_GEM=poise/halite + +- label: "Test knife-windows gem :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - bundle exec tasks/bin/run_external_test chef/knife-windows master rake unit_spec + expeditor: + executor: + docker: + environment: + - TEST_GEM=chef/knife-windows + +######################################################################### + # Tests Ruby 2.5 +######################################################################### + +- label: "Integration Specs :ruby: 2.5" + commands: + - asdf local ruby 2.5.5 + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --without ci docgen guard integration maintenance omnibus_package --frozen + - bundle exec rake spec:integration + expeditor: + executor: + docker: + environment: + - FORCE_FFI_YAJL=ext + - CHEF_LICENSE=accept-no-persist + - INTEGRATION_SPECS_25=1 + +- label: "Functional Specs :ruby: 2.5" + commands: + - asdf local ruby 2.5.5 + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --without ci docgen guard integration maintenance omnibus_package --frozen + - bundle exec rake spec:functional + expeditor: + executor: + docker: + environment: + - FORCE_FFI_YAJL=ext + - CHEF_LICENSE=accept-no-persist + - FUNCTIONAL_SPECS_25=1 + +- label: "Unit Specs :ruby: 2.5" + commands: + - asdf local ruby 2.5.5 + - /workdir/scripts/bk_tests/bk_install.sh + - bundle install --without ci docgen guard integration maintenance omnibus_package --frozen + - bundle exec rake spec:unit + - bundle exec rake component_specs + expeditor: + executor: + docker: + environment: + - FORCE_FFI_YAJL=ext + - CHEF_LICENSE=accept-no-persist + - UNIT_SPECS_25=1 + +######################################################################### + # START TEST KITCHEN ONLY +######################################################################### + +- label: "Kitchen Tests :ruby: 2.5" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - asdf local ruby 2.5.5 + - bundle install --jobs=3 --retry=3 --deployment --path=vendor/bundle + - cd /workdir/kitchen-tests + - bundle exec kitchen test end-to-end-amazonlinux-2 + expeditor: + executor: + docker: + environment: + - AMAZON=2 + - KITCHEN_YAML=kitchen.travis.yml + - BUNDLE_GEMFILE=$PWD/kitchen-tests/Gemfile diff --git a/scripts/bk_tests/bk_install.sh b/scripts/bk_tests/bk_install.sh index 87b6f61ff3..de74af151c 100644..100755 --- a/scripts/bk_tests/bk_install.sh +++ b/scripts/bk_tests/bk_install.sh @@ -4,7 +4,6 @@ gem uninstall bundler -a -x || true gem install bundler -v $(grep :bundler omnibus_overrides.rb | cut -d'"' -f2) bundle --version rm -f .bundle/config -bundle install --without ci docgen guard integration maintenance omnibus_package --frozen # force all .rspec tests into progress display to reduce line count echo --color > .rspec echo -fp >> .rspec |