summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaymala Sinha <jsinha@chef.io>2019-05-16 13:24:19 -0400
committerJaymala Sinha <jsinha@chef.io>2019-05-16 14:15:40 -0400
commitd82271c748b4b6fd1c3a8594895269527b54dd86 (patch)
tree9fb09e18e9161edadcdeba28797f14b53ab3f56a
parentdacc3346851e4e1d2c6d1fd62ebaae76de61882c (diff)
downloadchef-d82271c748b4b6fd1c3a8594895269527b54dd86.tar.gz
Add BK public verify pipeline
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
-rw-r--r--.expeditor/config.yml4
-rw-r--r--.expeditor/verify.pipeline.yml201
-rw-r--r--.travis.yml1
-rwxr-xr-xscripts/bk_tests/bk_install.sh9
4 files changed, 215 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml
index 6526222b0e..b53ba94091 100644
--- a/.expeditor/config.yml
+++ b/.expeditor/config.yml
@@ -21,6 +21,10 @@ habitat_packages:
- chef-client:
also_build_for_linux_kernel2: true
+pipelines:
+ - verify:
+ public: true
+
github:
# The file where the MAJOR.MINOR.PATCH version is kept. The version in this file
# is bumped automatically via the `built_in:bump_version` merge_action.
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
new file mode 100644
index 0000000000..86ff934af0
--- /dev/null
+++ b/.expeditor/verify.pipeline.yml
@@ -0,0 +1,201 @@
+steps:
+
+#########################################################################
+ # Tests Ruby 2.6
+#########################################################################
+
+# - label: "Integration Specs :ruby: 2.6"
+# commands:
+# - /workdir/scripts/bk_tests/bk_install.sh
+# - sed '/ip6/d' /etc/hosts > /etc/hosts.noip6
+# - cp /etc/hosts.noip6 /etc/hosts
+# - cd /workdir; bundle install --without docgen integration omnibus_package --frozen
+# - bundle exec rake spec:integration
+# expeditor:
+# executor:
+# docker:
+# environment:
+# - FORCE_FFI_YAJL=ext
+# - CHEF_LICENSE=accept-no-persist
+# - INTEGRATION_SPECS_26=1
+# - BUNDLE_GEMFILE=/workdir/Gemfile
+#
+# - label: "Functional Specs :ruby: 2.6"
+# commands:
+# - /workdir/scripts/bk_tests/bk_install.sh
+# - sed '/ip6/d' /etc/hosts > /etc/hosts.noip6
+# - cp /etc/hosts.noip6 /etc/hosts
+# - cd /workdir; bundle install --without docgen integration omnibus_package --frozen
+# - 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 install --without docgen integration 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_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:
+# - /workdir/scripts/bk_tests/bk_install.sh
+# - asdf local ruby 2.5.5
+# - sed '/ip6/d' /etc/hosts > /etc/hosts.noip6
+# - cp /etc/hosts.noip6 /etc/hosts
+# - bundle install --without docgen integration 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
+# - sed '/ip6/d' /etc/hosts > /etc/hosts.noip6
+# - cp /etc/hosts.noip6 /etc/hosts
+# - bundle install --without docgen integration 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 docgen integration 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
+# - sed '/ip6/d' /etc/hosts > /etc/hosts.noip6
+# - cp /etc/hosts.noip6 /etc/hosts
+# - cd /workdir/kitchen-tests
+# - bundle install --jobs=3 --retry=3 --path=vendor/bundle
+# - bundle exec kitchen test end-to-end-amazonlinux-2
+# expeditor:
+# executor:
+# docker:
+# environment:
+# - AMAZON=2
+# - KITCHEN_YAML=/workdir/kitchen-tests/kitchen.bk.yml
+# - BUNDLE_GEMFILE=/workdir/kitchen-tests/Gemfile
diff --git a/.travis.yml b/.travis.yml
index a57763b1e2..84e7159134 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,6 +31,7 @@ branches:
env:
global:
- FORCE_FFI_YAJL=ext
+ - CHEF_LICENSE=accept-no-persist
matrix:
include:
diff --git a/scripts/bk_tests/bk_install.sh b/scripts/bk_tests/bk_install.sh
new file mode 100755
index 0000000000..de74af151c
--- /dev/null
+++ b/scripts/bk_tests/bk_install.sh
@@ -0,0 +1,9 @@
+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
+# force all .rspec tests into progress display to reduce line count
+echo --color > .rspec
+echo -fp >> .rspec