diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 6af1fee..dcf13d5 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,22 +1,40 @@ | |||
1 | sudo: required | ||
2 | dist: trusty | ||
1 | language: c | 3 | language: c |
2 | 4 | ||
3 | before_install: | 5 | before_install: |
4 | - sudo add-apt-repository -y ppa:waja/precise-backports | 6 | # Trusty related fixed |
7 | # multiverse is no on trusty activated (https://github.com/travis-ci/travis-ci/issues/4979) | ||
8 | - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse" | ||
9 | # /etc/hosts has IPv6 hosts (https://github.com/travis-ci/travis-ci/issues/4978) | ||
10 | - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts | ||
11 | # Trusty has running ntpd on localhost, but we don't like that for our tests | ||
12 | - sudo killall -9 ntpd | ||
13 | # Trusty has no swap, lets create some | ||
14 | - sudo fallocate -l 20M /swapfile; sudo chmod 600 /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile | ||
15 | - sudo add-apt-repository -y ppa:waja/trusty-backports | ||
5 | - sudo apt-get update -qq | 16 | - sudo apt-get update -qq |
6 | - sudo apt-get purge -qq gawk | 17 | - sudo apt-get purge -qq gawk |
7 | # ensure we have a test database in place for tests | 18 | # http://docs.travis-ci.com/user/trusty-ci-environment/ indicates, no MySQL on Trusty (yet) |
8 | - mysql -e "create database IF NOT EXISTS test;" -uroot | 19 | # # ensure we have a test database in place for tests |
20 | # - mysql -e "create database IF NOT EXISTS test;" -uroot | ||
9 | 21 | ||
10 | install: | 22 | install: |
11 | - sudo apt-get install -qq --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps | 23 | - sudo apt-get install -qq --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libradcli-dev libkrb5-dev libnet-snmp-perl procps |
12 | - sudo apt-get install -qq --no-install-recommends libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd | 24 | - sudo apt-get install -qq --no-install-recommends libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd |
13 | - sudo apt-get install -qq --no-install-recommends fping snmp netcat smbclient fping pure-ftpd apache2 postfix libhttp-daemon-ssl-perl | 25 | - sudo apt-get install -qq --no-install-recommends fping snmp netcat smbclient fping pure-ftpd apache2 postfix libhttp-daemon-ssl-perl |
14 | - sudo apt-get install -qq --no-install-recommends libdbd-sybase-perl libnet-dns-perl | 26 | - sudo apt-get install -qq --no-install-recommends libdbd-sybase-perl libnet-dns-perl |
15 | - sudo apt-get install -qq --no-install-recommends slapd ldap-utils | 27 | - sudo apt-get install -qq --no-install-recommends slapd ldap-utils |
16 | - sudo apt-get install -qq --no-install-recommends autoconf automake | 28 | - sudo apt-get install -qq --no-install-recommends autoconf automake |
17 | - sudo apt-get install -qq --no-install-recommends faketime | 29 | - sudo apt-get install -qq --no-install-recommends faketime |
30 | # Trusty related dependencies (not yet provided) | ||
31 | - sudo apt-get install -qq --no-install-recommends mariadb-client mariadb-server | ||
18 | 32 | ||
19 | before_script: | 33 | before_script: |
34 | # ensure we have a test database in place for tests | ||
35 | - mysql -e "create database IF NOT EXISTS test;" -uroot | ||
36 | # Detect LDAP configuration (seems volatile on trusty env) | ||
37 | - sed -e 's/cn=admin,dc=nodomain/'$(sudo /usr/sbin/slapcat|grep ^dn:|grep cn=|awk '{print $2}')'/' -i plugins/t/NPTest.cache.travis | ||
20 | - tools/setup | 38 | - tools/setup |
21 | - ./configure --enable-libtap | 39 | - ./configure --enable-libtap |
22 | - make | 40 | - make |