Imported Upstream version 3.32.2
[platform/upstream/python-gobject.git] / .gitlab-ci.yml
1 image: registry.gitlab.gnome.org/gnome/pygobject/main:v10
2
3 stages:
4   - build_and_test
5   - coverage
6   - deploy
7
8 cache:
9   paths:
10     - _ccache/
11
12 .defaults: &defaults
13   stage: build_and_test
14   artifacts:
15     paths:
16       - coverage/
17   script:
18    - bash -x ./.gitlab-ci/test-docker.sh
19
20 .mingw-defaults: &mingw-defaults
21   stage: build_and_test
22   tags:
23     - win32
24   artifacts:
25     paths:
26       - coverage/
27   script:
28     - C:\msys64\usr\bin\pacman --noconfirm -Syyuu
29     - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2.sh"
30
31 coverage:
32   stage: coverage
33   artifacts:
34     paths:
35       - coverage/
36   variables:
37     PYENV_VERSION: "3.6.8"
38   script:
39     - bash -x ./.gitlab-ci/coverage-docker.sh
40
41 pages:
42   stage: deploy
43   dependencies:
44     - coverage
45   script:
46     - mv coverage/ public/
47   artifacts:
48     paths:
49       - public
50     expire_in: 30 days
51   only:
52     - master
53
54 python2-mingw32:
55   variables:
56     PYTHON: "python2"
57     MSYSTEM: "MINGW32"
58     CHERE_INVOKING: "yes"
59   <<: *mingw-defaults
60
61 python2-mingw64:
62   variables:
63     PYTHON: "python2"
64     MSYSTEM: "MINGW64"
65     CHERE_INVOKING: "yes"
66   <<: *mingw-defaults
67
68 python3-mingw32:
69   variables:
70     PYTHON: "python3"
71     MSYSTEM: "MINGW32"
72     CHERE_INVOKING: "yes"
73   <<: *mingw-defaults
74
75 python3-mingw64:
76   variables:
77     PYTHON: "python3"
78     MSYSTEM: "MINGW64"
79     CHERE_INVOKING: "yes"
80   <<: *mingw-defaults
81
82 python2.7:
83   variables:
84     PYENV_VERSION: "2.7.15-debug"
85   <<: *defaults
86
87 python3.5:
88   variables:
89     PYENV_VERSION: "3.5.6"
90   <<: *defaults
91
92 python3.6:
93   variables:
94     PYENV_VERSION: "3.6.8"
95   <<: *defaults
96
97 python3.7:
98   variables:
99     PYENV_VERSION: "3.7.2-debug"
100   <<: *defaults
101
102 pypy2.7:
103   allow_failure: true
104   variables:
105     PYENV_VERSION: "pypy2.7-7.0.0"
106   <<: *defaults
107
108 pypy3.5:
109   allow_failure: true
110   variables:
111     PYENV_VERSION: "pypy3.5-7.0.0"
112   <<: *defaults
113
114 pypy3.6:
115   allow_failure: true
116   variables:
117     PYENV_VERSION: "pypy3.6-7.0.0"
118   <<: *defaults
119
120 xenial-i386-py2:
121   stage: build_and_test
122   image: registry.gitlab.gnome.org/gnome/pygobject/old:v2
123   artifacts:
124     paths:
125       - coverage/
126   script:
127    - bash -x ./.gitlab-ci/test-docker-old.sh
128
129 gtk4:
130   stage: build_and_test
131   image: registry.gitlab.gnome.org/gnome/pygobject/gtk4:v3
132   artifacts:
133     paths:
134       - coverage/
135   script:
136    - bash -x ./.gitlab-ci/test-docker-gtk4.sh
137
138 gnome-master:
139   allow_failure: true
140   stage: build_and_test
141   image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
142   script:
143     - xvfb-run -a flatpak run --filesystem=host --share=network --socket=x11 --command=bash org.gnome.Sdk//master -x .gitlab-ci/test-flatpak.sh