-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
64 lines (59 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
stages:
- build
- check
variables:
BUILD_DIR: _build
DRAKE_DEBUG_BACKTRACE: "1"
DRAKE_EXPLAIN: "1"
INSTALL_DIR: _install
PROJECT: "elle"
PYTHONUNBUFFERED: "1"
GIT_SUBMODULE_STRATEGY: "none"
before_script:
- NPROC=$(nproc)
build:
stage: build
image: registry.gitlab.gruntech.org/infinit/elle/cosmic-ci
script:
- farm/configure --arch x86_64 --os xenial --compiler gcc4 --project $PROJECT --source-dir "$CI_PROJECT_DIR" --build-dir "$BUILD_DIR" --install-dir "$INSTALL_DIR"
- ccache --set-config=cache_dir="$CI_PROJECT_DIR/.ccache"
- ccache -z
- cd "$BUILD_DIR" && python3 drake -j $NPROC //build
- ccache -s
artifacts:
name: "${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}"
paths:
- _build
cache:
paths:
- .ccache
examples:
stage: check
image: registry.gitlab.gruntech.org/infinit/elle/cosmic-ci
script:
- ccache --set-config=cache_dir="$CI_PROJECT_DIR/.ccache"
- ccache -z
- cd "$BUILD_DIR" && python3 drake -j $NPROC //examples
- ccache -s
dependencies:
- build
cache:
paths:
- .ccache
check:
stage: check
image: registry.gitlab.gruntech.org/infinit/elle/cosmic-ci
script:
- ccache --set-config=cache_dir="$CI_PROJECT_DIR/.ccache"
- ccache -z
- cd "$BUILD_DIR" && python3 drake -j $NPROC //check
- ccache -s
dependencies:
- build
artifacts:
name: "${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}"
paths:
- _build
cache:
paths:
- .ccache