forked from gladk/trunk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
73 lines (67 loc) · 1.19 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
68
69
70
71
72
image: registry.gitlab.com/remche/docker-yade
stages:
- cmake
- build
- test
- doc
cmake:
stage: cmake
only:
- master
- merge_request
script:
- mkdir build && cd build
- cmake -DSUFFIX=-ci -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=../install -DDISABLE_SAVE_TEMPS=1 ..
artifacts:
paths:
- build
make:
stage: build
only:
- master
- merge_request
script:
- cd build
- make -j 12
- make install
- make clean
artifacts:
paths:
- install
dependencies:
- cmake
test:
stage: test
only:
- master
- merge_request
script:
- install/bin/yade-ci --test
dependencies:
- make
check:
stage: test
only:
- master
- merge_request
script:
- install/bin/yade-ci --checks
dependencies:
- make
pages:
stage: doc
only:
- master
- merge_request
script:
- cd build
- xvfb-run -s "-screen 0 1600x1200x24" make doc
- mv ../install/share/doc/yade-ci/html ../public
- mv ../install/share/doc/yade-ci/Yade.pdf ../public
- mv ../install/share/doc/yade-ci/Yade.epub ../public
dependencies:
- cmake
- make
artifacts:
paths:
- public