summaryrefslogtreecommitdiff
path: root/tools/ci
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-27 16:44:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-28 00:25:52 +0300
commita7d3e7b2c13408241aa0c99d0d767af302547c1c (patch)
treee08bfa218064ec5c56080e839b2948b853fd3f52 /tools/ci
parent51ec8befaa567430998c539d06a455e7a0dc136f (diff)
downloadplus-a7d3e7b2c13408241aa0c99d0d767af302547c1c.tar.gz
plus-a7d3e7b2c13408241aa0c99d0d767af302547c1c.tar.bz2
plus-a7d3e7b2c13408241aa0c99d0d767af302547c1c.tar.xz
plus-a7d3e7b2c13408241aa0c99d0d767af302547c1c.zip
Add into .gotlab-ci.yml build unit tests in gentoo with gcc 4.9.
Diffstat (limited to 'tools/ci')
-rwxr-xr-xtools/ci/jobs/gcc49_tests.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/ci/jobs/gcc49_tests.sh b/tools/ci/jobs/gcc49_tests.sh
new file mode 100755
index 000000000..c4796cedc
--- /dev/null
+++ b/tools/ci/jobs/gcc49_tests.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+export CC=gcc-4.9
+export CXX=g++-4.9
+
+if [ "$NEWCC" != "" ]; then
+ export CC="$NEWCC"
+fi
+if [ "$NEWCXX" != "" ]; then
+ export CXX="$NEWCXX"
+fi
+
+export LOGFILE=gcc49_tests.log
+
+source ./tools/ci/scripts/init.sh
+
+export CXXFLAGS="-ggdb3 -O2 -pipe -ffast-math \
+-fno-omit-frame-pointer \
+-D_FORTIFY_SOURCE=2 -std=gnu++1y"
+
+do_init
+run_configure --enable-unittests=yes $*
+export SDL_VIDEODRIVER=dummy
+run_make_check
+
+source ./tools/ci/scripts/exit.sh
+
+exit 0