forked from cmusatyalab/coda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
64 lines (57 loc) · 1.11 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
image: registry.cmusatyalab.org/coda/coda-packaging/coda-build
variables:
DOCKER_DRIVER: overlay2
before_script:
- mkdir -p ccache
- export CCACHE_BASEDIR="${PWD}"
- export CCACHE_DIR="${PWD}/ccache"
- export CCACHE_MAXSIZE="500M"
- export CCACHE_NOHASHDIR=true
- export CC="/usr/bin/ccache gcc"
- export CXX="/usr/bin/ccache g++"
cache:
paths:
- ccache/
test_build:
stage: build
script:
- tools/version_check.sh
- ./bootstrap.sh
- ./configure --prefix=/usr --with-lua
- make all
except:
- tags
- master
- /^coda-.*$/
build_source:
stage: build
script:
- tools/version_check.sh
- ./bootstrap.sh --fix-versions
- ./configure --prefix=/usr --with-lua
- make distcheck
artifacts:
expire_in: 1 week
paths:
- "coda-*.tar*"
only:
- tags
- master
- /^coda-.*$/
test_doc:
stage: build
script:
- doxygen doxygen/Doxyfile
except:
- master
pages:
stage: build
script:
- doxygen doxygen/Doxyfile
- mv doxygen/html/ public/
artifacts:
expire_in: 1 week
paths:
- public
only:
- master