]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - .travis.yml
Attempt number 666 at running desired PHPunit bin
[Github/YOURLS.git] / .travis.yml
1 sudo: false
2
3 language: php
4 php:
5   - 5.3
6   - 5.4
7   - 5.5
8   - 5.6
9   - 7.0
10   - 7.1
11   - hhvm
12
13 matrix:
14   allow_failures:
15   - php: hhvm
16
17 env:
18   - DB=mysql
19
20 before_script:
21   - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
22   - git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
23   - cp user/languages/fr/fr_FR.* user/languages
24   - mysql -e 'create database IF NOT EXISTS yourls_tests;'
25   - cp tests/yourls-tests-config-travis.php user/config.php
26   - |
27     case "$TRAVIS_PHP_VERSION" in
28       7.1|7.0|hhvm)
29         echo "Using PHPUnit 5.7"
30         composer global require "phpunit/phpunit=5.7.*"
31         ;;
32       5.6|5.5|5.4|5.3)
33         echo "Using PHPUnit 4.8"
34         composer global require "phpunit/phpunit=4.8.*"
35         ;;
36       *)
37         echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
38         exit 1
39         ;;
40     esac
41   - vendor/bin/phpunit --version
42
43 script: vendor/bin/phpunit --configuration ./tests/phpunit-travis.xml.dist
44
45 after_script: rm user/config.php
46
47 notifications:
48   email: false
49   irc:
50     channels:
51       - "irc.freenode.org#YOURLS"
52     use_notice: true