diff options
author | Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru> | 2017-03-31 15:32:58 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-31 14:32:58 +0200 |
commit | a1c928e70cd995426449ac6ec6df3b5a492580e5 (patch) | |
tree | 6996b02ac2ecbd3e8894f38b74ecc762d69f3cbb /ci/before_script.sh | |
parent | 77539eef9baa0d070a1d07360dda2177c2ae41a7 (diff) | |
download | rneovim-a1c928e70cd995426449ac6ec6df3b5a492580e5.tar.gz rneovim-a1c928e70cd995426449ac6ec6df3b5a492580e5.tar.bz2 rneovim-a1c928e70cd995426449ac6ec6df3b5a492580e5.zip |
ci: Do not hide ci directory (#6410)
Diffstat (limited to 'ci/before_script.sh')
-rwxr-xr-x | ci/before_script.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ci/before_script.sh b/ci/before_script.sh new file mode 100755 index 0000000000..4a75e89fbe --- /dev/null +++ b/ci/before_script.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +set -e +set -o pipefail + +if [[ -n "${CI_TARGET}" ]]; then + exit +fi + +CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +source "${CI_DIR}/common/build.sh" + +# Test some of the configuration variables. +if [[ -n "${GCOV}" ]] && [[ ! $(type -P "${GCOV}") ]]; then + echo "\$GCOV: '${GCOV}' is not executable." + exit 1 +fi +if [[ -n "${LLVM_SYMBOLIZER}" ]] && [[ ! $(type -P "${LLVM_SYMBOLIZER}") ]]; then + echo "\$LLVM_SYMBOLIZER: '${LLVM_SYMBOLIZER}' is not executable." + exit 1 +fi + +if [[ "${TRAVIS_OS_NAME}" == osx ]]; then + # Adds user to a dummy group. + # That allows to test changing the group of the file by `os_fchown`. + sudo dscl . -create /Groups/chown_test + sudo dscl . -append /Groups/chown_test GroupMembership "${USER}" +fi + +# Compile dependencies. +build_deps + +rm -rf "${LOG_DIR}" +mkdir -p "${LOG_DIR}" |