-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
57 lines (50 loc) · 996 Bytes
/
.gitlab-ci.yml
File metadata and controls
57 lines (50 loc) · 996 Bytes
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
image: python:3.9
stages:
- build
- test
- docs
pages:
stage: docs
script:
- pip install sphinx
- pip install sphinx_rtd_theme
- cd docs
- make html
- mv build/html ../public
artifacts:
paths:
- public
tags:
- docker
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
build:
stage: build
script:
- python setup.py install
tags:
- docker
test:
stage: test
script:
- pip install pytest-cov coverage
- python -m pytest --cov=localise --cov-report term --cov-report xml:coverage.xml
- ls -al
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
tags:
- docker