diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2020-06-20 20:49:35 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2020-06-23 22:01:22 +0200 |
commit | fe7f0ab2cee0f40d17e182cb3fb7107e6014e9a9 (patch) | |
tree | a5b18470eb0af59fa699c87c86b6afe8e3d421da /ci/build | |
parent | 8592189bf5ecf6cd1e9efbfc09c05f3e72dd29fa (diff) | |
download | ccache-fe7f0ab2cee0f40d17e182cb3fb7107e6014e9a9.tar.gz |
Clean up scripts related to CI and Docker
Diffstat (limited to 'ci/build')
-rwxr-xr-x | ci/build | 30 |
1 files changed, 18 insertions, 12 deletions
@@ -1,15 +1,21 @@ -#!/bin/sh -ex -# This script is used by .travis.yml and build-in-docker +#!/bin/sh +# +# This script is used by .travis.yml and build-in-docker. -if [ -n "${SPECIAL}" ]; then - sh ci/${SPECIAL} +set -eu + +if [ -n "${VERBOSE:-}" ]; then + set -x +fi + +if [ -n "${SPECIAL:-}" ]; then + exec "ci/$SPECIAL" else - mkdir -p ${BUILDDIR:-build} - cd ${BUILDDIR:-build} - ${CMAKE_PREFIX:-} cmake ${CCACHE_LOC:-..} ${CMAKE_PARAMS:-} - # 4 threads seems a reasonable default for Travis - ${CMAKE_PREFIX:-} cmake --build . ${BUILDEXTRAFLAGS:-} -- -j4 - # Warning: Rare random failures when running with j4. - test "${RUN_TESTS:-1}" -eq "1" && ctest --output-on-failure -j1 + mkdir -p ${BUILDDIR:-build} + cd ${BUILDDIR:-build} + ${CMAKE_PREFIX:-} cmake "${CCACHE_LOC:-..}" ${CMAKE_PARAMS:-} + # 4 jobs seem to be a reasonable default for Travis. + ${CMAKE_PREFIX:-} cmake --build . ${BUILDEXTRAFLAGS:-} -- -j4 + # Warning: Rare random failures when running with -j4. + [ "${RUN_TESTS:-1}" -ne "1" ] || ctest --output-on-failure -j1 fi -exit 0 |