-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (52 loc) · 1.11 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
49
50
51
52
53
54
55
56
57
cache:
paths:
- ~/.cache/pip/
stages:
- test
- lint
pylint:
image: python:latest
stage: lint
before_script:
- pip install -r ci/pylint_requirements.txt
script:
- chmod +x ./ci/pylint_runner.sh
- ./ci/pylint_runner.sh
artifacts:
when: always
paths:
- backend/public/pylint.svg
- backend/public/pylint.html
reports:
junit: backend/junit.xml
eslint:
image: node:latest
stage: lint
before_script:
- node --version
script:
- cd frontend
- npm install
- npm install -g eslint@latest eslint-plugin-react@latest
- eslint -f junit src/ > eslint-junit.xml || /bin/true
- python3 ../ci/junit_replace.py
artifacts:
when: always
reports:
junit: frontend/eslint-junit.xml
test:
image: python:latest
stage: test
before_script:
- cd backend
- pip install coverage
- pip install -r requirements.txt
script:
- coverage run manage.py test
- coverage report --omit=manage.py
- coverage html --omit=manage.py
- mkdir public
- mv htmlcov public/coverage
artifacts:
paths:
- public/coverage