22 - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
23 - git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
24 - cp user/languages/fr/fr_FR.* user/languages
25 - mysql -e 'create database IF NOT EXISTS yourls_tests;'
26 - cp tests/yourls-tests-config-travis.php user/config.php
28 # Export Composer's global bin dir to PATH
29 composer config --list --global
30 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
32 # Install the specified version of PHPUnit depending on the PHP version:
33 case "$TRAVIS_PHP_VERSION" in
35 echo "Using PHPUnit 5.7"
36 composer global require "phpunit/phpunit=5.7.*"
39 echo "Using PHPUnit 4.8"
40 composer global require "phpunit/phpunit=4.8.*"
43 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
50 script: phpunit --configuration ./tests/phpunit-travis.xml.dist
52 after_script: rm user/config.php
58 - "irc.freenode.org#YOURLS"