diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-19 18:49:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-19 19:12:07 +0300 |
commit | 9dc3d09dd336f46ce988a41eeaed4c7f229d25cc (patch) | |
tree | a0d701618addeb08bac36aa6e20b3c44757d71b7 | |
parent | 886794b8a1ff563f9d5c9952935a9b330b652a14 (diff) | |
download | plus-9dc3d09dd336f46ce988a41eeaed4c7f229d25cc.tar.gz plus-9dc3d09dd336f46ce988a41eeaed4c7f229d25cc.tar.bz2 plus-9dc3d09dd336f46ce988a41eeaed4c7f229d25cc.tar.xz plus-9dc3d09dd336f46ce988a41eeaed4c7f229d25cc.zip |
Add gcc 5 and gcc 6 builds with only -Wall -Wextra flags.
-rw-r--r-- | .gitlab-ci.yml | 74 | ||||
-rwxr-xr-x | tools/ci/jobs/any_compiler.sh | 18 |
2 files changed, 92 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df7f262ad..184cd6c3c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -121,6 +121,23 @@ gcc-6: libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev gdb valgrind netcat-openbsd +gcc-6_default: + stage: prebuild + script: + - ./tools/ci/jobs/any_compiler.sh --enable-werror + - ./tools/ci/scripts/runtests.sh + <<: *job-push + variables: + LOGFILE: gcc6.log + CC: gcc-6 + CXX: g++-6 + CXXFLAGS: "-Wall -Wextra" + PACKAGES: gcc-6 g++-6 + make autoconf automake autopoint gettext + libxml2-dev libcurl4-gnutls-dev libpng-dev + libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev + gdb valgrind netcat-openbsd + gcc-4.4: stage: prebuild script: @@ -1937,6 +1954,63 @@ gcc-4.9_sdl2: libsdl2-gfx-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev gdb valgrind netcat-openbsd +gcc-6_default_i386: + stage: build + script: + - ./tools/ci/jobs/any_compiler.sh --enable-werror + - ./tools/ci/scripts/runtests.sh + <<: *job-push + image: vicamo/debian:sid-i386 + variables: + LOGFILE: gcc6.log + CC: gcc-6 + CXX: g++-6 + CXXFLAGS: "-Wall -Wextra" + PACKAGES: gcc-6 g++-6 + make autoconf automake autopoint gettext + libxml2-dev libcurl4-gnutls-dev libpng-dev + libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev + gdb valgrind netcat-openbsd + tags: + - docker + +gcc-5_default: + stage: build + script: + - ./tools/ci/jobs/any_compiler.sh --enable-werror + - ./tools/ci/scripts/runtests.sh + <<: *job-push + variables: + LOGFILE: gcc5.log + CC: gcc-5 + CXX: g++-5 + CXXFLAGS: "-Wall -Wextra" + PACKAGES: gcc-5 g++-5 + make autoconf automake autopoint gettext + libxml2-dev libcurl4-gnutls-dev libpng-dev + libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev + gdb valgrind netcat-openbsd + +gcc-5_default_i386: + stage: build + script: + - ./tools/ci/jobs/any_compiler.sh --enable-werror + - ./tools/ci/scripts/runtests.sh + <<: *job-push + image: vicamo/debian:sid-i386 + variables: + LOGFILE: gcc5.log + CC: gcc-5 + CXX: g++-5 + CXXFLAGS: "-Wall -Wextra" + PACKAGES: gcc-5 g++-5 + make autoconf automake autopoint gettext + libxml2-dev libcurl4-gnutls-dev libpng-dev + libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev + gdb valgrind netcat-openbsd + tags: + - docker + gcc-5_h_eathena_tmwa: stage: build script: diff --git a/tools/ci/jobs/any_compiler.sh b/tools/ci/jobs/any_compiler.sh new file mode 100755 index 000000000..d3e9c5082 --- /dev/null +++ b/tools/ci/jobs/any_compiler.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ "$NEWCC" != "" ]; then + export CC="$NEWCC" +fi +if [ "$NEWCXX" != "" ]; then + export CXX="$NEWCXX" +fi + +source ./tools/ci/scripts/init.sh + +do_init +run_configure $* +run_make + +source ./tools/ci/scripts/exit.sh + +exit 0 |