2016-06-16 19:34:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2017-09-27 22:30:54 +00:00
|
|
|
function run_kitchen_tests {
|
|
|
|
ansible --version
|
|
|
|
ruby --version
|
2019-08-18 07:40:16 +00:00
|
|
|
python3 --version
|
|
|
|
pip3 --version
|
2017-09-27 22:30:54 +00:00
|
|
|
bundler --version
|
2020-01-08 16:42:53 +00:00
|
|
|
bundle list
|
2017-09-27 22:30:54 +00:00
|
|
|
bundle exec kitchen test --test-base-path="$PWD/.ci/integration" $KITCHEN_REGEXP
|
|
|
|
}
|
2016-06-16 19:34:25 +00:00
|
|
|
|
2019-03-09 23:49:45 +00:00
|
|
|
# Only running `make test` on standard (non-docker) builds,
|
|
|
|
# since it is called inside the docker container anyway.
|
|
|
|
|
2016-06-16 19:34:25 +00:00
|
|
|
# Local builds:
|
2017-09-28 05:01:40 +00:00
|
|
|
if [[ "$GITSECRET_DIST" == "brew" ]]; then
|
2019-03-12 19:41:54 +00:00
|
|
|
make lint && echo 'make lint: test passed' || echo 'make lint: test failed'
|
2019-03-09 23:49:45 +00:00
|
|
|
make test
|
|
|
|
fi
|
|
|
|
if [[ "$GITSECRET_DIST" == "windows" ]]; then
|
2017-09-28 13:08:03 +00:00
|
|
|
make test
|
2016-06-16 19:34:25 +00:00
|
|
|
fi
|
2016-06-30 19:32:42 +00:00
|
|
|
|
2017-09-27 22:30:54 +00:00
|
|
|
# Linux:
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -n "$KITCHEN_REGEXP" ]]; then
|
|
|
|
run_kitchen_tests
|
2016-06-30 19:32:42 +00:00
|
|
|
fi
|