-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
77 lines (70 loc) · 1.37 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.gitlab.com/faidide/juce-test-01/kholors-builder:v1.139.0
cache:
- key: "juce-7.0.6"
paths:
- JUCE/
- key: $CI_COMMIT_REF_SLUG
paths:
- .cache
- ccache/
- build/
before_script:
- if [[ ! -d ./JUCE ]]; then git clone --depth 1 --branch 7.0.6 https://github.com/juce-framework/JUCE.git ; fi
- if [[ ! -d ./build ]]; then mkdir build ; fi
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content
- export PATH="/usr/lib/ccache:$PATH"
- cd build
- cmake ..
stages:
- build
- test
- sonarqube-check
- versionning
build:
stage: build
script:
- make
except:
refs:
- tags
test:
stage: test
script:
- ctest --output-on-failure
except:
refs:
- tags
sonarqube-check:
stage: sonarqube-check
before_script: []
image:
name: sonarsource/sonar-scanner-cli:latest
entrypoint: [""]
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
GIT_DEPTH: "0"
cache:
key: "${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- sonar-scanner
allow_failure: true
except:
refs:
- tags
only:
refs:
- master
versionning:
image: node:latest
stage: versionning
before_script: []
only:
refs:
- master
script:
- npm install @semantic-release/gitlab
- npx semantic-release