git-secret/.ci/script.sh
Josh Rabinowitz b7741a0ade
Issue487 fedora buids (#511)
* use python3 and pip3

* upgrade to ansible 2.8.4

* set ansible_python_interpreter

* fix: enable debian sources when haven't found them

* updates to changelog
2019-08-18 03:40:16 -04:00

31 lines
690 B
Bash

#!/usr/bin/env bash
set -e
function run_kitchen_tests {
ansible --version
ruby --version
python3 --version
pip3 --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:
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
make test
fi
# Linux:
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -n "$KITCHEN_REGEXP" ]]; then
run_kitchen_tests
fi