summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-12-30 12:07:49 -0800
committerGitHub <noreply@github.com>2020-12-30 12:07:49 -0800
commit106d6b25c574c2441d64e3ac6ae22587aa6d3661 (patch)
treee89a34058a60799f5aeb78a270109bd31434bb77
parenta66cef3d240e3a171d589516262fc2cbcb8de134 (diff)
parenta9ceaf8d3055cedd1b0f5ae25e3d04b0a37ebfe9 (diff)
downloadmixlib-config-106d6b25c574c2441d64e3ac6ae22587aa6d3661.tar.gz
Merge pull request #99 from chef/ruby27
Add Ruby 2.7 testing + cache gem installs in CI
-rwxr-xr-x.expeditor/run_linux_tests.sh15
-rw-r--r--.expeditor/verify.pipeline.yml31
-rw-r--r--Gemfile2
3 files changed, 37 insertions, 11 deletions
diff --git a/.expeditor/run_linux_tests.sh b/.expeditor/run_linux_tests.sh
new file mode 100755
index 0000000..fc2f6b2
--- /dev/null
+++ b/.expeditor/run_linux_tests.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# This script runs a passed in command, but first setups up the bundler caching on the repo
+
+set -ue
+
+export USER="root"
+export LANG=C.UTF-8 LANGUAGE=C.UTF-8
+
+echo "--- bundle install"
+bundle config --local path vendor/bundle
+bundle install --jobs=7 --retry=3
+
+echo "+++ bundle exec task"
+bundle exec $@
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 7865325..ba3874e 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -1,41 +1,52 @@
---
expeditor:
+ cached_folders:
+ - vendor
defaults:
buildkite:
+ retry:
+ automatic:
+ limit: 1
timeout_in_minutes: 30
steps:
- label: run-lint-and-specs-ruby-2.4
command:
- - bundle install --jobs=7 --retry=3 --without docs debug
- - bundle exec rake
+ - .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
- image: ruby:2.4-stretch
+ image: ruby:2.4-buster
- label: run-lint-and-specs-ruby-2.5
command:
- - bundle install --jobs=7 --retry=3 --without docs debug
- - bundle exec rake
+ - .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
- image: ruby:2.5-stretch
+ image: ruby:2.5-buster
- label: run-lint-and-specs-ruby-2.6
command:
- - bundle install --jobs=7 --retry=3 --without docs debug
- - bundle exec rake
+ - .expeditor/run_linux_tests.sh rake
+ expeditor:
+ executor:
+ docker:
+ image: ruby:2.6-buster
+
+- label: run-lint-and-specs-ruby-2.7
+ command:
+ - .expeditor/run_linux_tests.sh rake
expeditor:
executor:
docker:
- image: ruby:2.6-stretch
+ image: ruby:2.7-buster
- label: run-specs-windows
command:
- - bundle install --jobs=7 --retry=3 --without docs debug
+ - bundle config --local path vendor/bundle
+ - bundle install --jobs=7 --retry=3
- bundle exec rake
expeditor:
executor:
diff --git a/Gemfile b/Gemfile
index f52ba7d..c484358 100644
--- a/Gemfile
+++ b/Gemfile
@@ -17,6 +17,6 @@ end
group :debug do
gem "pry"
gem "pry-byebug"
- gem "pry-stack_explorer"
+ gem "pry-stack_explorer", "~> 0.4.0" # supports Ruby < 2.6
gem "rb-readline"
end