-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
158 lines (151 loc) · 2.74 KB
/
.gitlab-ci.yml
File metadata and controls
158 lines (151 loc) · 2.74 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
stages:
- vet
- build
- test
check27:
stage: vet
image: python:2.7.14
variables:
ENV: development
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- pip install flake8 flake8-docstrings -c constraints.txt
- make clean
script:
- make check
cache:
untracked: true
paths:
- pip-cache
except:
- tags
check:
stage: vet
image: python:3.5.4
variables:
ENV: development
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- pip install flake8 flake8-docstrings -c constraints.txt
- make clean
script:
- make check
cache:
untracked: true
paths:
- pip-cache
except:
- tags
lint27:
stage: vet
image: python:2.7.14
variables:
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- ENV=production make setup
- ENV=development make setup
- ENV=test make setup
script:
- make lint
cache:
untracked: true
paths:
- pip-cache
except:
- tags
lint:
stage: vet
image: python:3.5.4
variables:
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- ENV=production make setup
- ENV=development make setup
- ENV=test make setup
script:
- make lint
cache:
untracked: true
paths:
- pip-cache
except:
- tags
build:
stage: build
image: node:8.9.0
variables:
NODE_ENV: production
before_script:
- node --version
- npm --version
- rm -fr node_modules
- npm install --global gulp-cli
- npm install --only=development --ignore-scripts
- npm install --ignore-scripts
script:
- make build
cache:
untracked: true
paths:
- node_modules
artifacts:
untracked: true
paths:
- static
except:
- tags
test27:
stage: test
image: python:2.7.14
variables:
ENV: test
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- make setup
script:
# no coverage (see python:3.5.4)
- make test
cache:
untracked: true
paths:
- pip-cache
except:
- tags
test:
stage: test
image: python:3.5.4
variables:
ENV: test
PIP_CACHE_DIR: pip-cache
before_script:
- pip install --upgrade pip setuptools
- python --version
- pip --version
- make setup
script:
- make coverage
cache:
untracked: true
paths:
- pip-cache
artifacts:
untracked: true
paths:
- tmp/coverage
except:
- tags