From a7d3e7b2c13408241aa0c99d0d767af302547c1c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Mar 2017 16:44:20 +0300 Subject: Add into .gotlab-ci.yml build unit tests in gentoo with gcc 4.9. --- .gitlab-ci.yml | 20 ++++++++++---------- tools/ci/jobs/gcc49_tests.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 10 deletions(-) create mode 100755 tools/ci/jobs/gcc49_tests.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a92c911ea..717624122 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -967,31 +967,31 @@ gcc-5_tarball_tests: libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev valgrind -.gentoo_gcc-5_tests: +gentoo_gcc-4.9_tests: stage: build script: - - ./tools/ci/jobs/gcc5_tests.sh --without-dyecmd --without-manaplusgame - image: registry.gitlab.com/manaplus/images:gentoo_gcc54_sdl1 + - ./tools/ci/jobs/gcc49_tests.sh --without-dyecmd --without-manaplusgame + image: registry.gitlab.com/manaplus/images:gentoo_gcc49_sdl1 <<: *job-shared variables: PMUPDATE: "echo" PMINSTALL: "echo" - NEWCC: gcc-5.4.0 - NEWCXX: g++-5.4.0-r3 + NEWCC: gcc-4.9.4 + NEWCXX: g++-4.9.4 tags: - docker -.gentoo_gcc-5_tests_sdl2: +gentoo_gcc-4.9_tests_sdl2: stage: build script: - - ./tools/ci/jobs/gcc5_tests.sh --without-dyecmd --without-manaplusgame --with-sdl2 - image: registry.gitlab.com/manaplus/images:gentoo_gcc54_sdl2 + - ./tools/ci/jobs/gcc49_tests.sh --without-dyecmd --without-manaplusgame --with-sdl2 + image: registry.gitlab.com/manaplus/images:gentoo_gcc49_sdl2 <<: *job-shared variables: PMUPDATE: "echo" PMINSTALL: "echo" - NEWCC: gcc-5.4.0 - NEWCXX: g++-5.4.0-r3 + NEWCC: gcc-4.9.4 + NEWCXX: g++-4.9.4 tags: - docker 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 -- cgit v1.2.3-70-g09d2