forked from gdnsd/gdnsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 1.06 KB
/
.travis.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
os: linux
dist: bionic
branches:
only:
- master
- /^[0-9]+\.[0-9]+\.x$/
language: c
cache:
apt: true
ccache: true
directories:
- '$HOME/.sonar'
- '$HOME/.cpanm'
addons:
sonarcloud:
organization: gdnsd
apt:
update: true
sources:
- sourceline: "ppa:maxmind/ppa"
packages:
- ragel
- libev-dev
- liburcu-dev
- libsodium-dev
- libunwind8-dev
- libmaxminddb-dev
- libsocket6-perl
- libio-socket-inet6-perl
- libwww-perl
- libhttp-daemon-perl
- libnet-dns-perl
before_install:
- cpanm -S -n Net::DNS
- sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
before_script:
- autoreconf -vif
script: ./qa/travis-build.sh
jobs:
include:
- name: "SonarCloud Coverage and Analysis"
compiler: gcc
env: GDNSD_TRAVIS_BUILD=sonarcloud
- name: "GCC - Optimized Build and Test"
compiler: gcc
env: GDNSD_TRAVIS_BUILD=optimized
- name: "Clang - Developer Build and Test"
compiler: clang
env: GDNSD_TRAVIS_BUILD=developer