-
Notifications
You must be signed in to change notification settings - Fork 10
/
.gitlab-ci.yml
67 lines (60 loc) · 1.32 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
58
59
60
61
62
63
64
65
66
67
stages:
- testing
- docs
- publish
# shorthand for testing
.test_template: &template
image: jgillis/meco_builder:rockit
tags:
- docker
before_script:
- python setup.py install
- pip install networkx scikit-fmm imageio
cache:
paths:
- .pip
testing:unittests:
stage: testing
<<: *template
script:
- nosetests --with-coverage --cover-html --cover-package=rockit
artifacts:
paths:
- cover
testing:examples:
stage: testing
<<: *template
script:
- python run_all.py
docs:sphinx:
stage: docs
<<: *template
dependencies:
- testing:unittests
- testing:examples
script:
- cd docs/sphinx && mkdir -p apidoc
- sphinx-apidoc -f -o ./apidoc/ ../../rockit/
- make html
- find -name "*.html" -print0 | xargs -0 sed -i 's|https://mybinder.org/v2/gh/meco-software/rockit.git/master?filepath=notebooks/|https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.kuleuven.be%2Fmeco-software%2Frockit.git/master?filepath=|g'
artifacts:
paths:
- docs/sphinx/build
only:
- master
pages:
stage: publish
tags:
- pages
dependencies:
- testing:unittests
- docs:sphinx
script:
- mkdir public
- cp -R ./docs/sphinx/build/html/* ./public/
- cp -R ./cover ./public/coverage
artifacts:
paths:
- public
only:
- master