-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
74 lines (63 loc) · 2.41 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
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
dist: jammy
language: perl
perl:
- "5.38"
- "5.34"
- "5.26"
addons:
apt:
packages:
# From Zonemaster Engine installation instruction for Ubuntu
- autoconf
- automake
- build-essential
- cpanminus
- libclone-perl
- libdevel-checklib-perl
- libfile-sharedir-perl
- libfile-slurp-perl
- libidn2-dev
- libintl-perl
- libjson-pp-perl
- liblist-moreutils-perl
- liblocale-msgfmt-perl
- libmail-rfc822-address-perl
- libmail-spf-perl
- libmodule-find-perl
- libnet-ip-perl
- libpod-coverage-perl
- libreadonly-xs-perl
- libssl-dev
- libtest-differences-perl
- libtest-exception-perl
- libtest-fatal-perl
- libtest-pod-perl
- libtext-csv-perl
- libtool
- m4
# From Zonemaster CLI installation instruction for Ubuntu
# libmoosex-getopt-perl, see cpan-install below
# libmodule-install-perl, see cpan-install below
- libtry-tiny-perl
before_install:
# Help Perl find modules installed from OS packages
- export PERL5LIB=/usr/share/perl5
# Provide cpanm helper
# quoting preserves newlines in the script and then avoid error if the script contains comments
- eval "$(curl https://travis-perl.github.io/init)" --auto
# Zonemaster LDNS needs a newer version of Module::Install
- cpan-install Module::Install Module::Install::XSUtil
# Moose installed from OS package depends on a newer version of Devel::OverloadInfo
- cpan-install Devel::OverloadInfo Moose MooseX::Getopt
# IO::Socket::INET6 can't find Socket6 installed from OS package
- cpan-install Socket6 IO::Socket::INET6
# Install Zonemaster LDNS
- git clone --depth=1 --branch=$TRAVIS_BRANCH https://github.com/zonemaster/zonemaster-ldns.git
- ( cd zonemaster-ldns && cpanm --verbose --notest --configure-args="--no-ed25519" . ) && rm -rf zonemaster-ldns
# Install Zonemaster Engine
- git clone --depth=1 --branch=$TRAVIS_BRANCH https://github.com/zonemaster/zonemaster-engine.git
- ( cd zonemaster-engine && cpanm --verbose --notest . ) && rm -rf zonemaster-engine
# Fix Header files location issue
- if [[ ! -e /usr/include/sys/ ]]; then sudo mkdir /usr/include/sys/; fi
- if [[ ! -e /usr/include/bits/ && -e /usr/include/x86_64-linux-gnu/bits/ ]]; then sudo ln -s /usr/include/x86_64-linux-gnu/bits/ /usr/include/bits; fi
- if [[ ! -e /usr/include/sys/socket.h ]]; then sudo ln -s /usr/include/bits/socket.h /usr/include/sys/socket.h; fi