Travis CI: update custom PHPUnit from 7.5.7 to .12
[racktables] / .travis.yml
CommitLineData
53b240b7
DO
1language: php
2
3git:
4 quiet: true
42f767bd 5 depth: 3
53b240b7 6
42f767bd
DO
7matrix:
8 fast_finish: true
f81030ae
DO
9 include:
10 - php: 5.5
11 - php: 5.6
12 - php: 7.0
13 - php: 7.1
14 - php: 7.2
02922688 15 env: PHPUNIT_BIN=~/bin/phpunit.phar # PHPUnit 8 by default
3ad09b75 16 - php: 7.3
02922688 17 env: PHPUNIT_BIN=~/bin/phpunit.phar # PHPUnit 8 by default
53b240b7
DO
18
19services:
20 - mysql
21
22before_script:
cf2bd5c9 23 - ./tests/travis_setup_mysql.sh racktables_unittest racktables travistest
02922688 24 - if [ "$PHPUNIT_BIN" != "" ]; then mkdir -p ~/bin && curl -sSfL -o ~/bin/phpunit.phar https://phar.phpunit.de/phpunit-7.5.12.phar && chmod a+x ~/bin/phpunit.phar; fi
53b240b7
DO
25
26script:
f81030ae
DO
27 - ./tests/express_pre.sh
28 - if [ "$SKIP_PHPUNIT" = yes ]; then echo '(skipped PHPUnit tests on request)'; else ./tests/express_phpunit.sh; fi
29 - ./tests/express_post.sh
bad3f361 30 - mysql -u racktables -ptravistest racktables_unittest < scripts/init-sample-racks.sql
9d6ccf63 31 - DESTDIR=/tmp make install