diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-23 11:02:03 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-02-23 16:37:17 +0100 |
commit | 2d812a6bc4d0952997a3ed3c63c4b09d8c95c103 (patch) | |
tree | 10d416492bd2e2e0030a60a2c9ac211122ea4c6c /.gitlab-ci.yml | |
parent | 1534289ce5934b73b5c980f8e246192009337776 (diff) | |
download | pygobject-2d812a6bc4d0952997a3ed3c63c4b09d8c95c103.tar.gz |
gitlab-ci: Add Windows coverage support. See #168
Use coverage.py and cygwin lcov to generate coverage files.
In the report generation step fixup the Windows paths in the coverage
files to match the Linux/Docker ones.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f02af61..d6915e46 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,11 +17,19 @@ cache: paths: - coverage/ script: - - mkdir -p _ccache - - export CCACHE_BASEDIR=${PWD} - - export CCACHE_DIR=${PWD}/_ccache - bash -x ./.gitlab-ci/test-docker.sh +.mingw-defaults: &mingw-defaults + stage: build_and_test + tags: + - win32 + artifacts: + paths: + - coverage/ + script: + - C:\msys64\usr\bin\pacman --noconfirm -Syyuu + - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh" + coverage: stage: coverage artifacts: @@ -33,28 +41,32 @@ coverage: - 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" + <<: *mingw-defaults + +python2-mingw64: + variables: + PYTHON: "python2" + MSYSTEM: "MINGW64" + CHERE_INVOKING: "yes" + <<: *mingw-defaults 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" + <<: *mingw-defaults + +python3-mingw64: + variables: + PYTHON: "python3" + MSYSTEM: "MINGW64" + CHERE_INVOKING: "yes" + <<: *mingw-defaults python2.7: variables: |