forked from ilbers/isar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
45 lines (41 loc) · 1006 Bytes
/
.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
image: ghcr.io/siemens/kas/kas-isar:latest
variables:
GIT_STRATEGY: clone
.common-build: &common-build
stage: build
before_script:
- export http_proxy=$HTTP_PROXY
- export https_proxy=$HTTPS_PROXY
- export ftp_proxy=$FTP_PROXY
- export no_proxy=$NO_PROXY
- export DISTRO_APT_PREMIRRORS=$DISTRO_APT_PREMIRRORS
artifacts:
name: "logs-$CI_JOB_ID"
paths:
- build/tmp/work/*/*/*/temp
- build/job-results
reports:
junit:
- build/job-results/job*/results.xml
when: always
expire_in: 1 week
fast-ci:
<<: *common-build
except:
- schedules
script:
- scripts/ci_build.sh -q -f -d
full-ci:
<<: *common-build
only:
- schedules
script:
- PREVIOUS_SHA="$(cat .CI_COMMIT_SHA || true)"
- if [ "$CI_COMMIT_SHA" != "$PREVIOUS_SHA" ]; then
echo "$CI_COMMIT_SHA" > .CI_COMMIT_SHA;
scripts/ci_build.sh -q -c -r -d;
fi
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .CI_COMMIT_SHA