|
@@ -112,13 +112,14 @@ before_script:
|
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH
|
|
|
# For some reason clang compiler toolchain installation in Travis CI VM does not have symlink in the ccache symlinks directory, so workaround it
|
|
# For some reason clang compiler toolchain installation in Travis CI VM does not have symlink in the ccache symlinks directory, so workaround it
|
|
|
- if [ "$CC" == "clang" ]; then ln -s $(which ccache) $HOME/clang && ln -s $(which ccache) $HOME/clang++ && export PATH=$HOME:$PATH; fi
|
|
- if [ "$CC" == "clang" ]; then ln -s $(which ccache) $HOME/clang && ln -s $(which ccache) $HOME/clang++ && export PATH=$HOME:$PATH; fi
|
|
|
- - ccache -z -M 100M
|
|
|
|
|
-script: rake ci
|
|
|
|
|
-before_cache: ccache -s
|
|
|
|
|
-after_success:
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
|
|
+script:
|
|
|
|
|
+ - rake ci
|
|
|
- if [ $SITE_UPDATE ]; then rake ci_site_update; fi
|
|
- if [ $SITE_UPDATE ]; then rake ci_site_update; fi
|
|
|
- if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; if [ $LINUX ] && [ ! "$URHO3D_64BIT" == "0" ]; then rake ci_package_upload URHO3D_USE_LIB64_RPM=1; fi; fi
|
|
- if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; if [ $LINUX ] && [ ! "$URHO3D_64BIT" == "0" ]; then rake ci_package_upload URHO3D_USE_LIB64_RPM=1; fi; fi
|
|
|
-after_script: if [ ${TRAVIS_JOB_NUMBER##*.} == 1 ]; then rake ci_create_mirrors; fi
|
|
|
|
|
|
|
+after_script:
|
|
|
|
|
+ - rake ci_teardown_cache
|
|
|
|
|
+ - if [ ${TRAVIS_JOB_NUMBER##*.} == 1 ]; then rake ci_create_mirrors; fi
|
|
|
notifications: {email: {on_success: never, on_failure: change}}
|
|
notifications: {email: {on_success: never, on_failure: change}}
|
|
|
|
|
|
|
|
---
|
|
---
|
|
@@ -151,9 +152,9 @@ before_script:
|
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH
|
|
|
- - ccache -z -M 100M
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
script: true
|
|
script: true
|
|
|
-before_cache: ccache -s
|
|
|
|
|
|
|
+after_script: rake ci_teardown_cache
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -220,10 +221,11 @@ before_script:
|
|
|
- if [ "$ABI" == "arm64-v8a" ]; then export C_PATH=$(pwd)/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin C_PREFIX=aarch64-linux-android; fi
|
|
- if [ "$ABI" == "arm64-v8a" ]; then export C_PATH=$(pwd)/android-ndk/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin C_PREFIX=aarch64-linux-android; fi
|
|
|
- if [ "$ABI" == "armeabi-v7a" ]; then export C_PATH=$(pwd)/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin C_PREFIX=arm-linux-androideabi; fi
|
|
- if [ "$ABI" == "armeabi-v7a" ]; then export C_PATH=$(pwd)/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin C_PREFIX=arm-linux-androideabi; fi
|
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$C_PATH:$PATH; for f in $C_PATH/$C_PREFIX-{gcc,g++}; do touch -d "2015-01-01 00:00:00 +0800" $f; done
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$C_PATH:$PATH; for f in $C_PATH/$C_PREFIX-{gcc,g++}; do touch -d "2015-01-01 00:00:00 +0800" $f; done
|
|
|
- - if [ "$USE_CCACHE" == "1" ]; then ccache -z -M 100M; fi
|
|
|
|
|
-script: rake ci
|
|
|
|
|
-before_cache: ccache -s
|
|
|
|
|
-after_success: if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
|
|
+script:
|
|
|
|
|
+ - rake ci
|
|
|
|
|
+ - if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
+after_script: rake ci_teardown_cache
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -259,10 +261,11 @@ before_script:
|
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
|
- if [ $RELEASE_TAG ] || (! [[ $TRAVIS_BRANCH =~ [^-]+-[^-]+-CI ]] && echo $COMMIT_MESSAGE |grep -cq '\[ci package\]'); then export PACKAGE_UPLOAD=1; fi
|
|
- if [ $RELEASE_TAG ] || (! [[ $TRAVIS_BRANCH =~ [^-]+-[^-]+-CI ]] && echo $COMMIT_MESSAGE |grep -cq '\[ci package\]'); then export PACKAGE_UPLOAD=1; fi
|
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):${RPI_PREFIX%/*}:$PATH
|
|
- export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):${RPI_PREFIX%/*}:$PATH
|
|
|
- - ccache -z -M 100M
|
|
|
|
|
-script: rake ci
|
|
|
|
|
-before_cache: ccache -s
|
|
|
|
|
-after_success: if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
|
|
+script:
|
|
|
|
|
+ - rake ci
|
|
|
|
|
+ - if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
+after_script: rake ci_teardown_cache
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -291,6 +294,7 @@ env:
|
|
|
matrix:
|
|
matrix:
|
|
|
fast_finish: true
|
|
fast_finish: true
|
|
|
before_script:
|
|
before_script:
|
|
|
|
|
+ - if [ $IOS ]; then export CI_START_TIME=$(date +%s); fi
|
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
|
- export TAG=$(git describe --exact-match $TRAVIS_COMMIT 2>/dev/null); if [[ $TAG =~ [[:digit:]]+\.[[:digit:]]+ ]]; then export RELEASE_TAG=$TAG; fi
|
|
- export TAG=$(git describe --exact-match $TRAVIS_COMMIT 2>/dev/null); if [[ $TAG =~ [[:digit:]]+\.[[:digit:]]+ ]]; then export RELEASE_TAG=$TAG; fi
|
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
@@ -300,10 +304,11 @@ before_script:
|
|
|
- if [ $PACKAGE_UPLOAD ]; then travis_retry brew install doxygen graphviz; fi
|
|
- if [ $PACKAGE_UPLOAD ]; then travis_retry brew install doxygen graphviz; fi
|
|
|
- export PATH=$(brew info ccache |grep -o '\S*lib\S*'):$PATH
|
|
- export PATH=$(brew info ccache |grep -o '\S*lib\S*'):$PATH
|
|
|
- if [ $XCODE ]; then cp -p $(which ccache) $(dirname $(xcodebuild -find-executable clang)) && for compiler in clang clang++; do path=$(xcodebuild -find-executable $compiler); mv $path{,.orig} && sudo ln -sf $(dirname $path)/clang.orig /usr/bin/$compiler && ln -s ccache $path; done; fi
|
|
- if [ $XCODE ]; then cp -p $(which ccache) $(dirname $(xcodebuild -find-executable clang)) && for compiler in clang clang++; do path=$(xcodebuild -find-executable $compiler); mv $path{,.orig} && sudo ln -sf $(dirname $path)/clang.orig /usr/bin/$compiler && ln -s ccache $path; done; fi
|
|
|
- - if [ $IOS ]; then export CI_START_TIME=$(date +%s); fi
|
|
|
|
|
-script: rake ci
|
|
|
|
|
-after_success: if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
-after_script: ccache -s
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
|
|
+script:
|
|
|
|
|
+ - rake ci
|
|
|
|
|
+ - if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload; fi
|
|
|
|
|
+after_script: rake ci_teardown_cache
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
@@ -327,6 +332,7 @@ env:
|
|
|
matrix:
|
|
matrix:
|
|
|
fast_finish: true
|
|
fast_finish: true
|
|
|
before_script:
|
|
before_script:
|
|
|
|
|
+ - export CI_START_TIME=$(date +%s)
|
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
- export TRAVIS_COMMIT=$TRAVIS_COMMIT~
|
|
|
- export TAG=$(git describe --exact-match $TRAVIS_COMMIT 2>/dev/null); if [[ $TAG =~ [[:digit:]]+\.[[:digit:]]+ ]]; then export RELEASE_TAG=$TAG; fi
|
|
- export TAG=$(git describe --exact-match $TRAVIS_COMMIT 2>/dev/null); if [[ $TAG =~ [[:digit:]]+\.[[:digit:]]+ ]]; then export RELEASE_TAG=$TAG; fi
|
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
- export COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
|
|
@@ -337,10 +343,11 @@ before_script:
|
|
|
- if [ $PACKAGE_UPLOAD ]; then travis_retry brew install doxygen graphviz; fi
|
|
- if [ $PACKAGE_UPLOAD ]; then travis_retry brew install doxygen graphviz; fi
|
|
|
- wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz && tar xfz emsdk-portable.tar.gz && rm emsdk-portable.tar.gz && cd emsdk_portable && ./emsdk update >/dev/null && sed -i.bak 's/-xvf/-xf/g' emsdk && ./emsdk install latest >/dev/null && ./emsdk activate latest >/dev/null && source ./emsdk_env.sh && export EMSCRIPTEN_ROOT_PATH=$EMSCRIPTEN && export EMSCRIPTEN=1
|
|
- wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz && tar xfz emsdk-portable.tar.gz && rm emsdk-portable.tar.gz && cd emsdk_portable && ./emsdk update >/dev/null && sed -i.bak 's/-xvf/-xf/g' emsdk && ./emsdk install latest >/dev/null && ./emsdk activate latest >/dev/null && source ./emsdk_env.sh && export EMSCRIPTEN_ROOT_PATH=$EMSCRIPTEN && export EMSCRIPTEN=1
|
|
|
- export PATH=$(brew info ccache |grep -o '\S*lib\S*'):$EMSCRIPTEN_ROOT_PATH:$PATH
|
|
- export PATH=$(brew info ccache |grep -o '\S*lib\S*'):$EMSCRIPTEN_ROOT_PATH:$PATH
|
|
|
- - export CI_START_TIME=$(date +%s)
|
|
|
|
|
-script: rake ci
|
|
|
|
|
-after_success: if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload && rake ci_emscripten_samples_update; fi
|
|
|
|
|
-after_script: ccache -s
|
|
|
|
|
|
|
+ - rake ci_setup_cache
|
|
|
|
|
+script:
|
|
|
|
|
+ - rake ci
|
|
|
|
|
+ - if [ $PACKAGE_UPLOAD ]; then rake ci_package_upload && rake ci_emscripten_samples_update; fi
|
|
|
|
|
+after_script: rake ci_teardown_cache
|
|
|
|
|
|
|
|
# Below samples are excluded from Emscripten CI build due to build time constraint
|
|
# Below samples are excluded from Emscripten CI build due to build time constraint
|
|
|
data:
|
|
data:
|