-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
51 lines (44 loc) · 966 Bytes
/
.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
49
50
51
---
# yamllint disable rule:line-length
variables:
GIT_SUBMODULE_STRATEGY: 'recursive'
before_script:
- 'pip install .'
- 'pip3 install ".[test]"'
- 'pip3 install -r docs/requirements.txt'
.test_template: &test_template
script:
- 'python3 -c "import sys; print(sys.getdefaultencoding())"'
- 'make check'
# Should match the versions listed in ./setup.py
test:3.4:
<<: *test_template
image: 'python:3.4'
test:3.5:
<<: *test_template
image: 'python:3.5'
test:3.6:
<<: *test_template
image: 'python:3.6'
coverage: '/^TOTAL.*?(\d+\%)$/'
artifacts:
paths:
- 'tests/coverage-report/'
pages:
stage: 'deploy'
before_script: []
# image: 'alpine'
image: 'busybox'
variables:
GIT_SUBMODULE_STRATEGY: 'none'
dependencies:
- 'test:3.6'
script:
- 'mkdir public/'
- 'mv "tests/coverage-report/" public/coverage'
artifacts:
paths:
- 'public'
expire_in: '30 days'
only:
- 'master'