summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-05-30 09:08:40 +0300
committerAndrei Karas <akaras@inbox.ru>2020-05-30 09:19:57 +0300
commit4e37004f15759b4ad19d98f5a2a2757cad89f814 (patch)
treee68c30e5c17d9314b9c54ea5e5927277ffcaf6e0
parent182d7b598aa38abc54ecb7ab1a452a36be152eed (diff)
downloadplus-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.gz
plus-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.bz2
plus-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.xz
plus-4e37004f15759b4ad19d98f5a2a2757cad89f814.zip
Add ci job for any compiler tests
-rwxr-xr-xtools/ci/jobs/any_compiler_tests.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/ci/jobs/any_compiler_tests.sh b/tools/ci/jobs/any_compiler_tests.sh
new file mode 100755
index 000000000..fb5feac48
--- /dev/null
+++ b/tools/ci/jobs/any_compiler_tests.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+export LOGFILE=tests.log
+
+if [ "$NEWCC" != "" ]; then
+ export CC="$NEWCC"
+fi
+if [ "$NEWCXX" != "" ]; then
+ export CXX="$NEWCXX"
+fi
+
+source ./tools/ci/scripts/init.sh
+
+export CXXFLAGS="$CXXFLAGS $POST_CXXFLAGS"
+
+do_init
+run_configure --enable-unittests=yes $*
+export SDL_VIDEODRIVER=dummy
+run_make_check
+
+source ./tools/ci/scripts/exit.sh
+
+exit 0