Skip to content

Commit cfdab42

Browse files
committed
travis: Build on Ubuntu Xenial (16.04)
1 parent 9820e3d commit cfdab42

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: c
22

33
sudo: required
4-
dist: trusty
4+
dist: xenial
55

66
# don't build tags separately
77
if: tag IS blank
@@ -75,8 +75,5 @@ matrix:
7575
env: TEST=apidoc
7676
- compiler: gcc
7777
env: TEST=win64 MONOLITHIC=yes
78-
# this does not work on 14.04 due to a missing @4 decoration for
79-
# TryAcquireSRWLockExclusive in MinGW 3.1.0
8078
- compiler: gcc
8179
env: TEST=win32 MONOLITHIC=yes
82-
dist: precise

scripts/test.sh

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ all|coverage|sonarcloud)
9898
--disable-kernel-pfroute --disable-keychain
9999
--disable-lock-profiler --disable-padlock --disable-fuzzing
100100
--disable-osx-attr --disable-tkm --disable-uci
101-
--disable-systemd --disable-soup --disable-unwind-backtraces
101+
--disable-soup --disable-unwind-backtraces
102102
--disable-svc --disable-dbghelp-backtraces --disable-socket-win
103103
--disable-kernel-wfp --disable-kernel-iph --disable-winhttp"
104-
# Ubuntu 14.04 does not provide libnm
105-
CONFIG="$CONFIG --disable-nm"
106104
# not enabled on the build server
107105
CONFIG="$CONFIG --disable-af-alg"
108106
if test "$TEST" != "coverage"; then
@@ -113,8 +111,8 @@ all|coverage|sonarcloud)
113111
fi
114112
DEPS="$DEPS libcurl4-gnutls-dev libsoup2.4-dev libunbound-dev libldns-dev
115113
libmysqlclient-dev libsqlite3-dev clearsilver-dev libfcgi-dev
116-
libpcsclite-dev libpam0g-dev binutils-dev libunwind8-dev
117-
libjson0-dev iptables-dev python-pip libtspi-dev"
114+
libpcsclite-dev libpam0g-dev binutils-dev libunwind8-dev libnm-dev
115+
libjson0-dev iptables-dev python-pip libtspi-dev libsystemd-dev"
118116
PYDEPS="pytest"
119117
if test "$1" = "deps"; then
120118
build_botan
@@ -130,7 +128,8 @@ win*)
130128
--enable-updown --enable-ext-auth --enable-libipsec
131129
--enable-tnccs-20 --enable-imc-attestation --enable-imv-attestation
132130
--enable-imc-os --enable-imv-os --enable-tnc-imv --enable-tnc-imc
133-
--enable-pki --enable-swanctl --enable-socket-win"
131+
--enable-pki --enable-swanctl --enable-socket-win
132+
--enable-kernel-iph --enable-kernel-wfp --enable-winhttp"
134133
# no make check for Windows binaries unless we run on a windows host
135134
if test "$APPVEYOR" != "True"; then
136135
TARGET=
@@ -144,20 +143,13 @@ win*)
144143
DEPS="gcc-mingw-w64-base"
145144
case "$TEST" in
146145
win64)
147-
# headers on 12.04 are too old, so we only build the plugins here
148-
CONFIG="--host=x86_64-w64-mingw32 $CONFIG --enable-dbghelp-backtraces
149-
--enable-kernel-iph --enable-kernel-wfp --enable-winhttp"
146+
CONFIG="--host=x86_64-w64-mingw32 $CONFIG --enable-dbghelp-backtraces"
150147
DEPS="gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev $DEPS"
151148
CC="x86_64-w64-mingw32-gcc"
152-
# apply patch to MinGW headers
153-
if test "$APPVEYOR" != "True" -a -z "$1"; then
154-
sudo patch -f -p 4 -d /usr/share/mingw-w64/include < src/libcharon/plugins/kernel_wfp/mingw-w64-4.8.1.diff
155-
fi
156149
;;
157150
win32)
158151
CONFIG="--host=i686-w64-mingw32 $CONFIG"
159-
# currently only works on 12.04, so use mingw-w64-dev instead of mingw-w64-i686-dev
160-
DEPS="gcc-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev $DEPS"
152+
DEPS="gcc-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-i686-dev $DEPS"
161153
CC="i686-w64-mingw32-gcc"
162154
;;
163155
esac

0 commit comments

Comments
 (0)