before_script.sh 668 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. set -e
  3. set -o pipefail
  4. CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  5. source "${CI_DIR}/common/build.sh"
  6. # Test some of the configuration variables.
  7. if [[ -n "${GCOV}" ]] && [[ ! $(type -P "${GCOV}") ]]; then
  8. echo "\$GCOV: '${GCOV}' is not executable."
  9. exit 1
  10. fi
  11. if [[ -n "${LLVM_SYMBOLIZER}" ]] && [[ ! $(type -P "${LLVM_SYMBOLIZER}") ]]; then
  12. echo "\$LLVM_SYMBOLIZER: '${LLVM_SYMBOLIZER}' is not executable."
  13. exit 1
  14. fi
  15. # Compile dependencies.
  16. build_deps
  17. # Install cluacov for Lua coverage.
  18. if [[ "$USE_LUACOV" == 1 ]]; then
  19. "${DEPS_BUILD_DIR}/usr/bin/luarocks" install cluacov
  20. fi
  21. rm -rf "${LOG_DIR}"
  22. mkdir -p "${LOG_DIR}"