-
Notifications
You must be signed in to change notification settings - Fork 21
/
.gitlab-ci.yml
49 lines (47 loc) · 1.12 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
stages:
- test
- publish
test:
image: ubuntu:latest
stage: test
script:
- apt-get update
- apt-get install -y git lcov build-essential cmake
- apt-get install -y python3-pip python3-venv
- sh configure.sh
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make
- make test
- make install
- cd ..
- mkdir -p examples/build
- cd examples/build
- cmake ..
- make
- for file in ./bin/*; do $file; done
- cd ../..
- cd python
- python3 -m venv .
- source ./bin/activate
- pip install -r requirements.txt
- ./build.sh
only:
- merge_requests
pages:
image: musicscience37/sphinx-doxygen
stage: publish
script:
- mkdir -p web/doxygen-build web/sphinx-build
- doxygen Doxyfile
- pip3 install sphinx breathe sphinx_rtd_theme
- sphinx-build -b html docs/source/ web/sphinx-build
- mv web/doxygen-build/html/ web/sphinx-build/doxygen
- mv web/sphinx-build public/
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH