summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-02-20 16:38:25 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-02-21 18:39:31 +0100
commit1534289ce5934b73b5c980f8e246192009337776 (patch)
tree4115b4386b6c692fe23aabd9b15d953a8e61f2cd /.gitlab-ci.yml
parent20fa66387020877a3ae20a6b48bba52153c7bd6c (diff)
downloadpygobject-1534289ce5934b73b5c980f8e246192009337776.tar.gz
gitlab-ci: Add MSYS2 test jobs
This assumes a gitlab runner with a "win32" tag which has MSYS2 installed in the default path and uses the "cmd" shell.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml32
1 files changed, 27 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f426e93..4f02af61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,11 +7,6 @@ stages:
- build_and_test
- coverage
-before_script:
- - mkdir -p _ccache
- - export CCACHE_BASEDIR=${PWD}
- - export CCACHE_DIR=${PWD}/_ccache
-
cache:
paths:
- _ccache/
@@ -22,6 +17,9 @@ cache:
paths:
- coverage/
script:
+ - mkdir -p _ccache
+ - export CCACHE_BASEDIR=${PWD}
+ - export CCACHE_DIR=${PWD}/_ccache
- bash -x ./.gitlab-ci/test-docker.sh
coverage:
@@ -34,6 +32,30 @@ coverage:
script:
- bash -x ./.gitlab-ci/coverage-docker.sh
+python2-mingw32:
+ stage: build_and_test
+ tags:
+ - win32
+ variables:
+ PYTHON: "python2"
+ MSYSTEM: "MINGW32"
+ CHERE_INVOKING: "yes"
+ script:
+ - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
+ - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
+
+python3-mingw32:
+ stage: build_and_test
+ tags:
+ - win32
+ variables:
+ PYTHON: "python3"
+ MSYSTEM: "MINGW32"
+ CHERE_INVOKING: "yes"
+ script:
+ - C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
+ - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
+
python2.7:
variables:
PYENV_VERSION: "2.7.14"