Files
neovim/ci/script.sh
Nikolai Aleksandrovich Pavlov a1c928e70c ci: Do not hide ci directory (#6410)
2017-03-31 14:32:58 +02:00

19 lines
424 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
if [[ -n "${CI_TARGET}" ]]; then
make "${CI_TARGET}"
exit 0
fi
# This will pass the environment variables down to a bash process which runs
# as $USER, while retaining the environment variables defined and belonging
# to secondary groups given above in usermod.
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
sudo -E su "${USER}" -c "ci/run_tests.sh"
else
ci/run_tests.sh
fi