-
-
Notifications
You must be signed in to change notification settings - Fork 251
/
.gitlab-ci.yml
48 lines (45 loc) · 1.22 KB
/
.gitlab-ci.yml
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
include: 'https://code.revolt.org/riseup/tcp/containers/glue/raw/no-masters/.gitlab-ci.yml'
# 'build' goes before 'test' because we test the container images
# that we've just built.
stages:
- build
- test
- accessibility
- release
test:
stage: test
image: registry.git.autistici.org/pipelines/images/test/python-chromedriver:master
services:
- name: "${IMAGE_TAG}"
alias: website
variables:
APACHE_PORT: 8080
SITE_URL: "http://website:8080"
TOX_TESTENV_PASSENV: SITE_URL
script:
- cd render-test
- ulimit -c 0
- tox --skip-pkg-install
artifacts:
when: always
expose_as: 'Screenshots'
paths:
- render-test/screenshots/
a11y:
stage: accessibility
image: registry.gitlab.com/gitlab-org/ci-cd/accessibility:5.3.0-gitlab.3
services:
- name: "${IMAGE_TAG}"
alias: website
variables:
a11y_urls: "http://website:8080 http://website:8080/donate http://website:8080/about-us http://website:8080/email"
script: /gitlab-accessibility.sh $a11y_urls
allow_failure: true
artifacts:
when: always
expose_as: 'Accessibility Reports'
paths: ['reports/']
reports:
accessibility: reports/gl-accessibility.json
rules:
- if: $a11y_urls