mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "+++ bundle exec rake test"
|
echo "+++ bundle exec rake ${RAKE_TASK:-}"
|
||||||
# TODO: run this as non-root:
|
# TODO: run this as non-root:
|
||||||
# chown -R normal:normal /home/normal /workdir
|
# chown -R normal:normal /home/normal /workdir
|
||||||
# su normal -c "bundle exec rake ${RAKE_TASK:-}"
|
# su normal -c "bundle exec rake ${RAKE_TASK:-}"
|
||||||
|
|
|
@ -9,6 +9,14 @@ expeditor:
|
||||||
|
|
||||||
steps:
|
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
|
- label: run-tests-ruby-2.4
|
||||||
command:
|
command:
|
||||||
- /workdir/.expeditor/buildkite/verify.sh
|
- /workdir/.expeditor/buildkite/verify.sh
|
||||||
|
|
4
Rakefile
4
Rakefile
|
@ -46,8 +46,8 @@ GLOBS = [
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
task default: ["test:lint", "test:default"]
|
task default: %w{ test }
|
||||||
task test: ["test:default"]
|
task test: %w{ test:default }
|
||||||
|
|
||||||
namespace :test do
|
namespace :test do
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue