Travis CI: update custom PHPUnit from 7.5.7 to .12
[racktables] / .travis.yml
1 language: php
2
3 git:
4 quiet: true
5 depth: 3
6
7 matrix:
8 fast_finish: true
9 include:
10 - php: 5.5
11 - php: 5.6
12 - php: 7.0
13 - php: 7.1
14 - php: 7.2
15 env: PHPUNIT_BIN=~/bin/phpunit.phar # PHPUnit 8 by default
16 - php: 7.3
17 env: PHPUNIT_BIN=~/bin/phpunit.phar # PHPUnit 8 by default
18
19 services:
20 - mysql
21
22 before_script:
23 - ./tests/travis_setup_mysql.sh racktables_unittest racktables travistest
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
25
26 script:
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
30 - mysql -u racktables -ptravistest racktables_unittest < scripts/init-sample-racks.sql
31 - DESTDIR=/tmp make install