-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
52 lines (47 loc) · 1.14 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
variables:
DEBIAN_FRONTEND: noninteractive
image: debian
stages:
- build_and_test
- deploy
build_and_test:
stage: build_and_test
before_script:
- apt update
- apt -y install cmake g++ pkg-config git libgtest-dev doxygen libboost-all-dev zlib1g-dev liblzma-dev python3-all python3-pip python3-setuptools pybind11-dev python3-pybind11
script:
- cmake -DBUILD_TESTS=ON -DBUILD_PYTHON_BINDINGS=ON .
- make
- ./tests/tests
pages:
stage: deploy
dependencies:
- build_and_test
before_script:
- apt update
- apt -y install cmake g++ pkg-config git doxygen libboost-all-dev zlib1g-dev liblzma-dev
script:
- cmake .
- make doc
- mv doc/html/ public/
artifacts:
paths:
- public
only:
- tags
obs:
stage: deploy
dependencies:
- build_and_test
before_script:
- apt update
- apt -y install build-essential devscripts debhelper git osc python3-pip python3-setuptools python3-venv
- python3 -m venv venv
- venv/bin/python3 -m pip install apkg
script:
- source venv/bin/activate
- scripts/prepare_obs.sh
- scripts/build_obs.sh
- deactivate
only:
- tags