mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
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:
parent
55664f753a
commit
933c95e27f
3 changed files with 11 additions and 3 deletions
|
@ -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:-}"
|
||||
|
|
|
@ -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
|
||||
|
|
4
Rakefile
4
Rakefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue