summaryrefslogtreecommitdiffstats
path: root/cibuild.sh
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2021-07-10 22:58:33 +0200
committerAlexander Harkness <me@bearbin.net>2021-07-10 22:59:18 +0200
commit4bb359f06796cfd93374b2ed6d2c7d07ff86749c (patch)
tree9923ac2c4d4219563ad7e143542d670d82db1d09 /cibuild.sh
parentChorus fruit teleport (#5259) (diff)
downloadcuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar.gz
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar.bz2
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar.lz
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar.xz
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.tar.zst
cuberite-4bb359f06796cfd93374b2ed6d2c7d07ff86749c.zip
Diffstat (limited to '')
-rwxr-xr-xcibuild.sh (renamed from travisbuild.sh)12
1 files changed, 6 insertions, 6 deletions
diff --git a/travisbuild.sh b/cibuild.sh
index 712f4e2c4..cd30cda0a 100755
--- a/travisbuild.sh
+++ b/cibuild.sh
@@ -2,8 +2,8 @@
set -e
-export CUBERITE_BUILD_SERIES_NAME="Travis $CC $TRAVIS_CUBERITE_BUILD_TYPE"
-export CUBERITE_BUILD_ID=$TRAVIS_JOB_NUMBER
+export CUBERITE_BUILD_SERIES_NAME="CI $CC $CI_CUBERITE_BUILD_TYPE"
+export CUBERITE_BUILD_ID=$CI_JOB_NUMBER
export CUBERITE_BUILD_DATETIME=`date`
# Use ccache if available
@@ -20,17 +20,17 @@ if [ `which ccache` ]; then
ccache --zero-stats
fi
-workdir="$CC"_"$TRAVIS_CUBERITE_BUILD_TYPE"
+workdir="$CC"_"$CI_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=${CI_CUBERITE_BUILD_TYPE} \
-DBUILD_TOOLS=Yes \
-DPRECOMPILE_HEADERS=No \
-DSELF_TEST=Yes \
- -DUNITY_BUILDS=${TRAVIS_CUBERITE_UNITY_BUILDS-Yes} \
+ -DUNITY_BUILDS=${CI_CUBERITE_UNITY_BUILDS-Yes} \
-DWHOLE_PROGRAM_OPTIMISATION=No \
${CACHE_ARGS};
@@ -47,7 +47,7 @@ ctest --output-on-failure --parallel 2;
cd Server/;
touch apiCheckFailed.flag
-if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
+if [ "$CI_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
./Cuberite <<- EOF
load APIDump
apicheck