From f6003d19efccc0d2015f509399db887d792bfad5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 31 Mar 2017 02:58:55 +0300 Subject: Add into .gitlab-ci.yml tests compilation with mingw. --- .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ tools/ci/jobs/mxe_gcc5_tests.sh | 17 +++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 tools/ci/jobs/mxe_gcc5_tests.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f6c30476..875e72423 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,6 +140,44 @@ mxe_gcc5_shared_64: tags: - docker +mxe_gcc5_shared_32_testsbin: + stage: prebuild + script: + - ls /mxe + - ./tools/ci/jobs/mxe_gcc5_tests.sh --without-manaplusgame --without-dyecmd + artifacts: + paths: + - logs + untracked: true + when: always + expire_in: 1 week + dependencies: [] + image: registry.gitlab.com/manaplus/mxe:gcc5_shared_32 + variables: + PACKAGES: bash + CROSS: i686-w64-mingw32.shared + tags: + - docker + +mxe_gcc5_shared_64_testsbin: + stage: prebuild + script: + - ls /mxe + - ./tools/ci/jobs/mxe_gcc5_tests.sh --without-manaplusgame --without-dyecmd + artifacts: + paths: + - logs + untracked: true + when: always + expire_in: 1 week + dependencies: [] + image: registry.gitlab.com/manaplus/mxe:gcc5_shared_64 + variables: + PACKAGES: bash + CROSS: x86_64-w64-mingw32.shared + tags: + - docker + gcc-5_sdl2: stage: prebuild script: diff --git a/tools/ci/jobs/mxe_gcc5_tests.sh b/tools/ci/jobs/mxe_gcc5_tests.sh new file mode 100755 index 000000000..364b2858f --- /dev/null +++ b/tools/ci/jobs/mxe_gcc5_tests.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +export LOGFILE=mxe_gcc5.log + +source ./tools/ci/scripts/winvars.sh || exit 1 + +$CC --version +$CXX --version + +autoreconf -i || exit 1 + +./configure \ +--host=${CROSS} \ +--enable-unittestsbin \ +$* || (cp config.log logs || exit 1) + +make -j2 V=0 -- cgit v1.2.3-60-g2f50