-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
80 lines (72 loc) · 2.46 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
75
76
77
78
79
80
sudo: required
language: perl
matrix:
include:
- perl: "5.28"
addons:
mariadb: 5.5
env: MARIADB_VERSION=5.5
- perl: "5.28"
addons:
mariadb: 10.0
env: MARIADB_VERSION=10.0
- perl: "5.28"
addons:
mariadb: 10.1
env: MARIADB_VERSION=10.1
- perl: "5.28"
env: MYSQL_VERSION=8.0
- perl: "5.28"
env: MYSQL_VERSION=5.7
- perl: "5.28"
env: MYSQL_VERSION=5.6
- perl: "5.28"
env: MYSQL_VERSION=8.0 MYSQL_STRICT=1
- perl: "5.28"
env: MYSQL_VERSION=5.7 MYSQL_STRICT=1
- perl: "5.28"
env: MYSQL_VERSION=5.6 MYSQL_STRICT=1
- perl: "5.28"
env: MYSQL_VERSION=8.0 MYSQL_UTF8MB4=1
- perl: "5.28"
env: MYSQL_VERSION=5.7 MYSQL_UTF8MB4=1
- perl: "5.28"
env: MYSQL_VERSION=5.6 MYSQL_UTF8MB4=1
- perl: "5.28"
env: COVERAGE=1
before_install:
- if [ x"$MYSQL_VERSION" != "x" ];
then
sudo service mysql stop;
sudo echo -e "Package: my_package\nPin: $DISTRIB_CODENAME o=Ubuntu\nPin-Priority: -10" > /etc/apt/preferences.d/mysql;
sudo apt-key add .mysql.pub;
. /etc/lsb-release;
sudo add-apt-repository "deb http://repo.mysql.com/apt/ubuntu/ $DISTRIB_CODENAME mysql-$MYSQL_VERSION";
sudo apt-get update;
sudo apt-cache policy mysql-server;
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -t mysql-$MYSQL_VERSION --yes --fix-broken --allow-unauthenticated --option DPkg::Options::=--force-confnew install mysql-server;
echo "upgrading mysql";
sudo mysql_upgrade -u root --password='' --force;
sudo service mysql restart;
fi
- if [ "$TRAVIS_MARIADB_VERSION" ] ; then sudo aptitude install -y libmariadbclient-dev; fi
- if [ "$MYSQL_STRICT" ] ; then sudo cp xt/travis/mysql-strict.cnf /etc/mysql/conf.d && sudo service mysql restart; fi
- if [ "$MYSQL_UTF8MB4" ] ; then sudo cp xt/travis/mysql-utf8mb4.cnf /etc/mysql/conf.d && sudo service mysql restart; fi
- my_print_defaults mysqld client
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist
- cd $BUILD_DIR
install:
- cpan-install --deps
- cpan-install --coverage
before_script:
- coverage-setup
script:
- perl Makefile.PL
- make
- prove -vbl -s $(test-files)
after_success:
- coverage-report