summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-05 01:10:24 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-05 01:10:24 +0300
commitcbff9c6914008b198690587434bf919625856ce8 (patch)
tree02325d380732afddc2ecdd8a1ff134a7b3e0dbc1 /.ci
parentEnable colors in console logger (diff)
downloadnheko-cbff9c6914008b198690587434bf919625856ce8.tar.xz
Build boost with C++14
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/script.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.ci/script.sh b/.ci/script.sh
index 309e5915..69433dba 100755
--- a/.ci/script.sh
+++ b/.ci/script.sh
@@ -3,6 +3,17 @@
 set -ex
 
 if [ $TRAVIS_OS_NAME == linux ]; then
+    export CC=${C_COMPILER}
+    export CXX=${CXX_COMPILER}
+
+    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${C_COMPILER} 10
+    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/${CXX_COMPILER} 10
+
+    sudo update-alternatives --set gcc "/usr/bin/${C_COMPILER}"
+    sudo update-alternatives --set g++ "/usr/bin/${CXX_COMPILER}"
+fi
+
+if [ $TRAVIS_OS_NAME == linux ]; then
     source /opt/qt${QT_PKG}/bin/qt${QT_PKG}-env.sh || true;
 fi