diff options
author | Alexander Harkness <me@bearbin.net> | 2021-06-17 10:31:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 10:31:29 +0200 |
commit | 4e48464bb3708968e1f15455cc2a11ae3acec3fe (patch) | |
tree | dde6a089fef9506d5466aea01dbbcdbcffdcb137 /travisbuild.sh | |
parent | Migrate off CircleCI to Jenkins (#5230) (diff) | |
download | cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.gz cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.bz2 cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.lz cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.xz cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.tar.zst cuberite-4e48464bb3708968e1f15455cc2a11ae3acec3fe.zip |
Diffstat (limited to 'travisbuild.sh')
-rwxr-xr-x | travisbuild.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/travisbuild.sh b/travisbuild.sh index 9b93e35e8..712f4e2c4 100755 --- a/travisbuild.sh +++ b/travisbuild.sh @@ -1,4 +1,4 @@ - #!/usr/bin/env bash +#!/usr/bin/env bash set -e @@ -20,9 +20,13 @@ if [ `which ccache` ]; then ccache --zero-stats fi +workdir="$CC"_"$TRAVIS_CUBERITE_BUILD_TYPE" +mkdir "$workdir" +cd "$workdir" + # Work around a Clang + ccache issue with failing builds by disabling # precompiled headers. Turn off LTO for faster build speeds -cmake . -DCMAKE_BUILD_TYPE=${TRAVIS_CUBERITE_BUILD_TYPE} \ +cmake .. -DCMAKE_BUILD_TYPE=${TRAVIS_CUBERITE_BUILD_TYPE} \ -DBUILD_TOOLS=Yes \ -DPRECOMPILE_HEADERS=No \ -DSELF_TEST=Yes \ @@ -31,7 +35,7 @@ cmake . -DCMAKE_BUILD_TYPE=${TRAVIS_CUBERITE_BUILD_TYPE} \ ${CACHE_ARGS}; echo "Building..." -cmake --build . --parallel 2; +cmake --build . --parallel 3; if [ `which ccache` ]; then echo "Built with ccache, outputting cache stats..." |