forked from mathworks/llfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
76 lines (69 loc) · 2 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
#+++++++++++-+-+--+----- --- -- - - - -
# See batteries/docker/Dockerfile (https://gitlab.com/batteriescpp/batteries/)
#
image: registry.gitlab.com/batteriescpp/batteries:v0.50.7.linux_gcc11_amd64
variables:
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: normal
#+++++++++++-+-+--+----- --- -- - - - -
default:
retry:
max: 2
when: runner_system_failure
before_script:
- "test -d /local/gitlab-runner-local-cache || { echo \"FATAL: no local docker cache volume mapped\"; false; }"
- export XDG_CACHE_HOME=/local/gitlab-runner-local-cache/.cache
- export CONAN_USER_HOME=/local/gitlab-runner-local-cache
- export CONAN_HOME=/local/gitlab-runner-local-cache/.conan_2.0.16
- /setup-conan.sh
- echo "CI_DEPLOY_USER=${CI_DEPLOY_USER}"
- echo "CI_DEPLOY_PASSWORD=${CI_DEPLOY_PASSWORD}"
- env | grep 'RELEASE_CONAN'
- env | grep -v 'RELEASE_CONAN'
- ulimit -a
#+++++++++++-+-+--+----- --- -- - - - -
stages:
- install
- build
- test
- release
#+++++++++++-+-+--+----- --- -- - - - -
install:
stage: install
script:
- echo "CONAN_USER_HOME=${CONAN_USER_HOME}"
- make BUILD_TYPE=Release install
#+++++++++++-+-+--+----- --- -- - - - -
build:
stage: build
script:
- echo "CONAN_USER_HOME=${CONAN_USER_HOME}"
- make BUILD_TYPE=Release install build
artifacts:
paths:
- build/
#+++++++++++-+-+--+----- --- -- - - - -
test:
stage: test
script:
- echo "CONAN_USER_HOME=${CONAN_USER_HOME}"
- make BUILD_TYPE=Release test
artifacts:
reports:
junit:
- build/Release/test-results.xml
- build/Release/death-test-results.xml
#+++++++++++-+-+--+----- --- -- - - - -
release:
stage: release
variables:
RELEASE_CONAN_LOGIN_USERNAME: "${CI_DEPLOY_USER}"
RELEASE_CONAN_PASSWORD: "${CI_DEPLOY_PASSWORD}"
script:
- make BUILD_TYPE=Release install
- script/publish-release.sh
release:
tag_name: $CI_COMMIT_TAG
description: $CI_COMMIT_MESSAGE
rules:
- if: $CI_COMMIT_TAG