Split lint to its own step and let all the others just run tests.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-12-03 15:53:38 -08:00
parent 55664f753a
commit 933c95e27f
3 changed files with 11 additions and 3 deletions

View file

@ -67,7 +67,7 @@ if [ -z "${SKIP_BUNDLE_CACHE:-}" ]; then
fi
fi
echo "+++ bundle exec rake test"
echo "+++ bundle exec rake ${RAKE_TASK:-}"
# TODO: run this as non-root:
# chown -R normal:normal /home/normal /workdir
# su normal -c "bundle exec rake ${RAKE_TASK:-}"

View file

@ -9,6 +9,14 @@ expeditor:
steps:
- label: lint-ruby-2.6
command:
- RAKE_TASK=test:lint /workdir/.expeditor/buildkite/verify.sh
expeditor:
executor:
docker:
image: ruby:2.6-stretch
- label: run-tests-ruby-2.4
command:
- /workdir/.expeditor/buildkite/verify.sh

View file

@ -46,8 +46,8 @@ GLOBS = [
].freeze
# run tests
task default: ["test:lint", "test:default"]
task test: ["test:default"]
task default: %w{ test }
task test: %w{ test:default }
namespace :test do