mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
22a928aeac
Travis defines[1] $CI for its builds, whereas $CI_TARGET is a Neovim-specific env var from6483a198e4
that lost prominence ind2eb4a9346
. [1] https://docs.travis-ci.com/user/environment-variables/
22 lines
585 B
Bash
Executable File
22 lines
585 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
|
|
# Set up precompiled third-party dependencies.
|
|
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) deps-x64"
|
|
|
|
sudo -E su "${USER}" -c ".ci/run_tests.sh"
|
|
else
|
|
.ci/run_tests.sh
|
|
fi
|