Newer
Older
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
---
stages:
- lint
- test
pre-commit:
stage: lint
image: adarnimrod/ci-images:pre-commit
variables: &variables
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
LANG: C.UTF-8
script:
- pre-commit run -a
cache: &cache
key: "$CI_JOB_NAME"
paths:
- .cache/
python2.7:
stage: test
image: $project:$version-slim
allow_failure: true
before_script: &before_script
- pip install docutils
- |
if [ "$project" = "pypy" ]
then
apt-get update
apt-get install -y build-essential libssl-dev
fi
script: &script
- $project setup.py check -mrs
- pip install ./
variables: *variables
cache: *cache
parallel:
matrix:
- project: python
version:
- "2.7"
- project: pypy
version:
- "2.7"
python3:
stage: test
image: $project:$version-slim
before_script: *before_script
script: *script
variables: *variables
cache: *cache
parallel:
matrix:
- project: python
version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- project: pypy
version:
- "3.6"
- "3.7"