-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
59 lines (52 loc) · 1.27 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
image: docker:latest
services:
- docker:dind
.build-template: &build
script:
- docker build -t bolt-$OS -f ./contrib/Dockerfile-$OS .
- mkdir build-$OS
- docker run --cap-drop=dac_override -e -t -v `pwd`:/src -v `pwd`/build-$OS:/build bolt-$OS ./contrib/docker-build.sh
artifacts:
paths:
- build-$OS/meson-logs
expire_in: 1 week
fedora:
stage: build
variables:
OS: fedora
<<: *build
arch:
stage: build
allow_failure: true
variables:
OS: arch
<<: *build
alpine:
stage: build
variables:
OS: alpine
<<: *build
coverity:
stage: build
only:
refs:
- schedules
variables:
- $COVERITY_TOKEN && $COVERITY_EMAIL
script:
- mkdir build-coverity
- docker build --build-arg ORG=gicmo --build-arg PROJECT=bolt --build-arg TOKEN=$COVERITY_TOKEN -t bolt-coverity -f ./contrib/Dockerfile-coverity .
- docker run --rm -e COVERITY_TOKEN=$COVERITY_TOKEN -e COVERITY_EMAIL=$COVERITY_EMAIL -t -v `pwd`:/src:Z -v `pwd`/build-coverity:/build:Z bolt-coverity ./contrib/coverity.sh
artifacts:
paths:
- build-coverity/cov-int/build-log.txt
expire_in: 1 week
srpm_build:
image: quay.io/packit/packit
stage: build
script:
- packit srpm
artifacts:
paths:
- "*.src.rpm"
expire_in: 1 week