summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: b63296fd5e906dc49a16815aa6de8636abb7d8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
image: registry.gitlab.gnome.org/gnome/pygobject/main:v8

stages:
  - build_and_test
  - coverage
  - deploy

cache:
  paths:
    - _ccache/

.defaults: &defaults
  stage: build_and_test
  artifacts:
    paths:
      - coverage/
  script:
   - 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:
    paths:
      - coverage/
  variables:
    PYENV_VERSION: "3.6.6"
  script:
    - bash -x ./.gitlab-ci/coverage-docker.sh

pages:
  stage: deploy
  dependencies:
    - coverage
  script:
    - mv coverage/ public/
  artifacts:
    paths:
      - public
    expire_in: 30 days
  only:
    - master

python2-mingw32:
  variables:
    PYTHON: "python2"
    MSYSTEM: "MINGW32"
    CHERE_INVOKING: "yes"
  <<: *mingw-defaults

python2-mingw64:
  variables:
    PYTHON: "python2"
    MSYSTEM: "MINGW64"
    CHERE_INVOKING: "yes"
  <<: *mingw-defaults

python3-mingw32:
  variables:
    PYTHON: "python3"
    MSYSTEM: "MINGW32"
    CHERE_INVOKING: "yes"
  <<: *mingw-defaults

python3-mingw64:
  variables:
    PYTHON: "python3"
    MSYSTEM: "MINGW64"
    CHERE_INVOKING: "yes"
  <<: *mingw-defaults

python2.7:
  variables:
    PYENV_VERSION: "2.7.15-debug"
  <<: *defaults

python3.5:
  variables:
    PYENV_VERSION: "3.5.6"
  <<: *defaults

python3.6:
  variables:
    PYENV_VERSION: "3.6.6"
  <<: *defaults

python3.7:
  variables:
    PYENV_VERSION: "3.7.0-debug"
  <<: *defaults

pypy2:
  allow_failure: true
  variables:
    PYENV_VERSION: "pypy2.7-6.0.0"
  <<: *defaults

pypy3:
  allow_failure: true
  variables:
    PYENV_VERSION: "pypy3.5-6.0.0"
  <<: *defaults

xenial-i386-py2:
  stage: build_and_test
  image: registry.gitlab.gnome.org/gnome/pygobject/old:v2
  script:
   - bash -x ./.gitlab-ci/test-docker-old.sh

gtk4:
  allow_failure: true
  stage: build_and_test
  image: registry.gitlab.gnome.org/gnome/pygobject/gtk4:v1
  script:
   - bash -x ./.gitlab-ci/test-docker-gtk4.sh

gnome-master:
  allow_failure: true
  stage: build_and_test
  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
  script:
    - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash org.gnome.Sdk//master -x .gitlab-ci/test-flatpak.sh