-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
53 lines (45 loc) · 1.04 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
variables:
GIT_DEPTH: 100
DOCKER_DRIVER: overlay2
stages:
- containers
- builds
- sanity_checks
.script_variables: &script_variables |
export MAKEFLAGS="-j $(getconf _NPROCESSORS_ONLN)"
export CCACHE_BASEDIR="$(pwd)"
export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
export CCACHE_MAXSIZE="500M"
export PATH="$CCACHE_WRAPPERSDIR:$PATH"
include: '/ci/gitlab.yml'
.base_build_job:
cache:
paths:
- ccache/
key: "$CI_JOB_NAME"
script:
- *script_variables
- ci/build.sh
artifacts:
paths:
- "config.log"
- "**/test-suite.log"
public: true
when: always
expire_in: 1 week
.native_build_job_prebuilt_env:
extends:
- .base_build_job
- .gitlab_native_build_job_prebuilt_env
.native_build_job_local_env:
extends:
- .base_build_job
- .gitlab_native_build_job_local_env
.cross_build_job_prebuilt_env:
extends:
- .base_build_job
- .gitlab_cross_build_job_prebuilt_env
.cross_build_job_local_env:
extends:
- .base_build_job
- .gitlab_cross_build_job_local_env