577e22beacb0be35beec501d28f8694e70c20ed3
[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-7.5.7 # PHPUnit 8 by default
16 - php: 7.3
17 env: PHPUNIT_BIN=~/bin/phpunit-7.5.7 # PHPUnit 8 by default
18
19 services:
20 - mysql
21
22 before_script:
23 - ./tests/travis_setup_mysql.sh racktables_unittest racktables travistest
24 - mkdir -p ~/bin
25 - curl -sSfL -o ~/bin/phpunit-7.5.7 https://phar.phpunit.de/phpunit-7.5.7.phar
26 - chmod a+x ~/bin/phpunit-7.5.7
27
28 script:
29 - ./tests/express_pre.sh
30 - if [ "$SKIP_PHPUNIT" = yes ]; then echo '(skipped PHPUnit tests on request)'; else ./tests/express_phpunit.sh; fi
31 - ./tests/express_post.sh
32 - mysql -u racktables -ptravistest racktables_unittest < scripts/init-sample-racks.sql
33 - DESTDIR=/tmp make install