summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaymala Sinha <jsinha@chef.io>2019-04-11 12:08:33 -0400
committerJaymala Sinha <jsinha@chef.io>2019-04-11 15:37:16 -0400
commit544fca80af17e53f64c8b59c29b9431042c2f4df (patch)
tree39af19907f5c6c4d7c57866ac964f0b036d6de20
parent0c2be39a02445ae1c0acbe1a22cd6a2c101ba385 (diff)
downloadchef-jsinha/migrate_verify_bk.tar.gz
Add Verification tests in Buildkitejsinha/migrate_verify_bk
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
-rw-r--r--.expeditor/config.yml2
-rw-r--r--.expeditor/verify.pipeline.yml42
-rw-r--r--scripts/bk_tests/bk_install.sh10
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