git-secret/.ci/script.sh

31 lines
688 B
Bash
Raw Normal View History

#!/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
}
# Only running `make test` on standard (non-docker) builds,
# since it is called inside the docker container anyway.
# Local builds:
2017-09-28 05:01:40 +00:00
if [[ "$GITSECRET_DIST" == "brew" ]]; then
make lint && echo 'make lint: test passed' || echo 'make lint: test failed'
make test
fi
if [[ "$GITSECRET_DIST" == "windows" ]]; then
2017-09-28 13:08:03 +00:00
make test
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