summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-31 02:58:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-31 02:58:55 +0300
commitf6003d19efccc0d2015f509399db887d792bfad5 (patch)
tree5a7aa2ef3d612427b4fe77d109f109d70d0a5d7e
parentfec78ac900de7f61b7f08d14ffb526715e7942b0 (diff)
downloadmv-f6003d19efccc0d2015f509399db887d792bfad5.tar.gz
mv-f6003d19efccc0d2015f509399db887d792bfad5.tar.bz2
mv-f6003d19efccc0d2015f509399db887d792bfad5.tar.xz
mv-f6003d19efccc0d2015f509399db887d792bfad5.zip
Add into .gitlab-ci.yml tests compilation with mingw.
-rw-r--r--.gitlab-ci.yml38
-rwxr-xr-xtools/ci/jobs/mxe_gcc5_tests.sh17
2 files changed, 55 insertions, 0 deletions
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