-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.gitlab-ci.yml
77 lines (71 loc) · 1.46 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
73
74
75
76
77
image: registry.cmusatyalab.org/coda/coda-packaging/coda-build
# should be a no-op if the submitter used the pre-commit hooks
post_commit:
stage: .pre
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
key: precommit
policy: pull-push
paths:
- ${CI_PROJECT_DIR}/.cache
script:
- pre-commit run -v --all-files
- tools/version_check.sh
.build_template:
stage: build
variables:
CCACHE_DIR: ${CI_PROJECT_DIR}/.cache/ccache
CCACHE_BASEDIR: ${CI_PROJECT_DIR}
CCACHE_COMPILERCHECK: content
CCACHE_NOHASHDIR: "true"
CCACHE_MAXSIZE: 500M
CC: "/usr/bin/ccache gcc"
CXX: "/usr/bin/ccache g++"
FIXVER: ""
TARGET: all
cache:
key: default
paths:
- $CCACHE_DIR
- ${CI_PROJECT_DIR}/config.cache
script:
- ./bootstrap.sh $FIXVER
- ./configure -C --prefix=/usr --with-lua
- make -j $TARGET
test_build:
extends: .build_template
except:
- tags
- master
- /^coda-.*$/
build_source:
extends: .build_template
variables:
FIXVER: "--fix-versions"
TARGET: 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