diff options
author | Tim Smith <tsmith@chef.io> | 2019-04-12 11:39:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 11:39:29 -0700 |
commit | eed07cfef594f211620214a2f373398b83da392a (patch) | |
tree | 5c843081c397d673f9859caec268d78e0c1cf44c | |
parent | bb4aa42621245fb89cd15a03a80362ada00c3aec (diff) | |
parent | 544fca80af17e53f64c8b59c29b9431042c2f4df (diff) | |
download | chef-eed07cfef594f211620214a2f373398b83da392a.tar.gz |
Merge pull request #8357 from chef/jsinha/migrate_verify_bk
Add Verification tests in Buildkite
-rw-r--r-- | .expeditor/config.yml | 2 | ||||
-rw-r--r-- | .expeditor/verify.pipeline.yml | 42 | ||||
-rw-r--r-- | scripts/bk_tests/bk_install.sh | 10 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml index ec02c20587..1ce2a6c964 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -23,6 +23,8 @@ docker_images: - chef pipelines: + - verify: + public: true - habitat/build - omnibus/release - omnibus/adhoc: diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml new file mode 100644 index 0000000000..2987928f01 --- /dev/null +++ b/.expeditor/verify.pipeline.yml @@ -0,0 +1,42 @@ +steps: + +######################################################################### + # Tests Ruby 2.6 +######################################################################### + +- label: "Integration Specs :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle exec rake spec:integration + expeditor: + executor: + docker: + environment: + - FORCE_FFI_YAJL=ext + - CHEF_LICENSE=accept-no-persist + - INTEGRATION_SPECS_26=1 + +- label: "Functional Specs :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - bundle exec rake spec:functional + expeditor: + executor: + docker: + environment: + - FORCE_FFI_YAJL=ext + - CHEF_LICENSE=accept-no-persist + - FUNCTIONAL_SPECS_26=1 + +- label: "Unit Specs :ruby: 2.6" + commands: + - /workdir/scripts/bk_tests/bk_install.sh + - 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_26=1 diff --git a/scripts/bk_tests/bk_install.sh b/scripts/bk_tests/bk_install.sh new file mode 100644 index 0000000000..87b6f61ff3 --- /dev/null +++ b/scripts/bk_tests/bk_install.sh @@ -0,0 +1,10 @@ +gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2) +gem --version +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 |