Skip to content

Commit 9e18edf

Browse files
committed
Fix running tests on Travis
Package libmysqld-pic is not available on default Travis configuration anymore. Service mysql needs to be enabled explicitly. And package libgnutls-dev is not preinstalled anymore.
1 parent 85f8f8f commit 9e18edf

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ perl:
2929
- "5.26-shrplib"
3030
- "5.28"
3131

32+
services:
33+
- mysql
34+
3235
matrix:
3336
include:
3437
- perl: system_precise
@@ -37,19 +40,26 @@ matrix:
3740
dist: trusty
3841
- perl: system_xenial
3942
dist: xenial
40-
services:
41-
- mysql
43+
- perl: system_precise
44+
dist: precise
45+
env: MYSQL_CONFIG=PIC
4246
addons:
4347
apt:
4448
packages:
4549
- libdbi-perl
4650
- libmysqlclient-dev
47-
- perl: system_precise
48-
dist: precise
49-
env: MYSQL_CONFIG=PIC
51+
- libmysqld-pic
52+
- libwrap0-dev
5053
- perl: system_trusty
5154
dist: trusty
5255
env: MYSQL_CONFIG=PIC
56+
addons:
57+
apt:
58+
packages:
59+
- libdbi-perl
60+
- libmysqlclient-dev
61+
- libmysqld-pic
62+
- libwrap0-dev
5363
- perl: "5.8.1"
5464
env: DBI_VERSION=1.608
5565
- perl: "5.16.3"
@@ -393,9 +403,9 @@ addons:
393403
- libnuma-dev
394404
- libjemalloc-dev
395405
- libmysqlclient-dev
396-
- libmysqld-pic
397406
- libwrap0-dev
398407
- libstdc++5
408+
- libgnutls-dev
399409

400410
before_install:
401411
- if ! [[ $TRAVIS_PERL_VERSION =~ ^system ]] && [ -z "$PERLBREW_PERL" ]; then eval $(curl https://travis-perl.github.io/init) --perl; fi

0 commit comments

Comments
 (0)