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
|
|
|
|
python --version
|
|
|
|
pip --version
|
|
|
|
bundler --version
|
|
|
|
bundle show
|
|
|
|
bundle exec kitchen test --test-base-path="$PWD/.ci/integration" $KITCHEN_REGEXP
|
|
|
|
}
|
2016-06-16 19:34:25 +00:00
|
|
|
|
|
|
|
# Local builds:
|
2017-09-28 05:01:40 +00:00
|
|
|
if [[ "$GITSECRET_DIST" == "brew" ]]; then
|
2016-06-16 19:34:25 +00:00
|
|
|
# Only running `make test` on standard (non-docker) build,
|
|
|
|
# since it is called inside the docker container anyway.
|
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
|