diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2020-06-20 20:00:24 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2020-06-23 21:48:29 +0200 |
commit | 8592189bf5ecf6cd1e9efbfc09c05f3e72dd29fa (patch) | |
tree | e6f6e53dc10ace20c5211c4d1317bf9d8b13d5dd /ci/build | |
parent | 644b3cdd2ecde415f82948a9ee492a09d65f06ef (diff) | |
download | ccache-8592189bf5ecf6cd1e9efbfc09c05f3e72dd29fa.tar.gz |
Improve naming of scripts
- Use kebab case consistently.
- Remove redundant (and exposing an implementation detail) .sh extension
for executables.
Diffstat (limited to 'ci/build')
-rwxr-xr-x | ci/build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/build b/ci/build new file mode 100755 index 00000000..3b42db63 --- /dev/null +++ b/ci/build @@ -0,0 +1,15 @@ +#!/bin/sh -ex +# This script is used by .travis.yml and build-in-docker + +if [ -n "${SPECIAL}" ]; then + sh 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 +fi +exit 0 |