forked from gem-pasteur/macsyfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
52 lines (46 loc) · 1005 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
52
stages:
- test
- coverage
- pages
variables:
MACSY_VERSION: ${CI_COMMIT_REF_NAME}
testing38:
stage: test
image: registry-gitlab.pasteur.fr/gem/macsyfinder/run_dep
script:
- python3.8 -m pip install .
- python3.8 tests/run_tests.py -vvv
except:
- /^feat.*$/
- /^fix.*$/
coverage:
stage: coverage
image: registry-gitlab.pasteur.fr/gem/macsyfinder/coverage
script:
- python3.8 -m pip install .
- coverage run --source=macsypy tests/run_tests.py -vv
- coverage html
- coverage report
artifacts:
paths:
- coverage_html/
except:
- /^feat.*$/
- /^fix.*$/
pages:
stage: pages
image: registry-gitlab.pasteur.fr/gem/macsyfinder/pages
dependencies:
- coverage
script:
- python3.8 -m pip install .
- cd ${CI_PROJECT_DIR}/doc/
- make html
- cd ${CI_PROJECT_DIR}
- mv ${CI_PROJECT_DIR}/doc/build/html/ public
- mv coverage_html public/coverage
artifacts:
paths:
- public
only:
- dev