diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-05-30 09:08:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-05-30 09:19:57 +0300 |
commit | 4e37004f15759b4ad19d98f5a2a2757cad89f814 (patch) | |
tree | e68c30e5c17d9314b9c54ea5e5927277ffcaf6e0 /tools/ci/jobs | |
parent | 182d7b598aa38abc54ecb7ab1a452a36be152eed (diff) | |
download | manaverse-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.gz manaverse-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.bz2 manaverse-4e37004f15759b4ad19d98f5a2a2757cad89f814.tar.xz manaverse-4e37004f15759b4ad19d98f5a2a2757cad89f814.zip |
Add ci job for any compiler tests
Diffstat (limited to 'tools/ci/jobs')
-rwxr-xr-x | tools/ci/jobs/any_compiler_tests.sh | 23 |
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 |