From 544fca80af17e53f64c8b59c29b9431042c2f4df Mon Sep 17 00:00:00 2001 From: Jaymala Sinha Date: Thu, 11 Apr 2019 12:08:33 -0400 Subject: Add Verification tests in Buildkite Signed-off-by: Jaymala Sinha --- .expeditor/config.yml | 2 ++ .expeditor/verify.pipeline.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ scripts/bk_tests/bk_install.sh | 10 ++++++++++ 3 files changed, 54 insertions(+) create mode 100644 .expeditor/verify.pipeline.yml create mode 100644 scripts/bk_tests/bk_install.sh 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 -- cgit v1.2.1