aboutsummaryrefslogtreecommitdiff
path: root/.ci/script.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/script.sh')
-rwxr-xr-x.ci/script.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/.ci/script.sh b/.ci/script.sh
new file mode 100755
index 0000000000..4d0666ec0e
--- /dev/null
+++ b/.ci/script.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+set -e
+set -o pipefail
+
+if [[ -n "${CI_TARGET}" ]]; then
+ make lint
+ 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