-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
83 lines (74 loc) · 1.58 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
78
79
80
81
82
83
variables:
DEBIAN_FRONTEND: noninteractive
DOCKER_DRIVER: overlay2
CI_REGISTRY_IMAGE: oerdnj/bind9
stages:
- build
- test
.centos-centos7-amd64: ¢os_centos7_amd64_image
image: "$CI_REGISTRY_IMAGE:centos-centos7-amd64"
variables:
LC_ALL: en_US.UTF-8
tags:
- linux
- docker
- amd64
.debian-sid-amd64: &debian_sid_amd64_image
image: "$CI_REGISTRY_IMAGE:debian-sid-amd64"
variables:
LC_ALL: C.UTF-8
image: "$CI_REGISTRY_IMAGE:debian-sid-amd64"
tags:
- linux
- docker
- amd64
.build: &build_job
stage: build
tags:
- linux
- docker
before_script:
- autoreconf -fi
script:
- ./configure
- make -k all V=1
artifacts:
expire_in: '1 week'
paths:
- config.log
- genreport
.test: &test_job
stage: test
tags:
- linux
- docker
script:
- echo . f.root-servers.net | ./genreport
build:centos:centos7:amd64:
variables:
CC: gcc
CFLAGS: "-Wall -Wextra -O2 -g -D_BSD_SOURCE"
before_script:
- autoreconf -fi
<<: *centos_centos7_amd64_image
<<: *build_job
build:debian:sid:amd64:
variables:
CC: gcc
CFLAGS: "-Wall -Wextra -O2 -g"
before_script:
- apt-get update
- apt-get -y install autotools-dev build-essential autoconf automake libtool autoconf-archive
- autoreconf -fi
<<: *debian_sid_amd64_image
<<: *build_job
test:centos:centos7:amd64:
<<: *centos_centos7_amd64_image
<<: *test_job
dependencies:
- build:centos:centos7:amd64
test:debian:sid:amd64:
<<: *debian_sid_amd64_image
<<: *test_job
dependencies:
- build:debian:sid:amd64