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
27 # Export Composer's global bin dir to PATH
28 composer config --list --global
29 export PATH=`composer config --list --global | grep '\[home\]' | { read a; echo "${a#* }/vendor/bin:$PATH"; }`
31 # Install the specified version of PHPUnit depending on the PHP version:
32 case "$TRAVIS_PHP_VERSION" in
34 echo "Using PHPUnit 5.7"
35 composer global require "phpunit/phpunit=5.7.*"
38 echo "Using PHPUnit 4.8"
39 composer global require "phpunit/phpunit=4.8.*"
42 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
49 script: phpunit --configuration ./tests/phpunit-travis.xml.dist
51 after_script: rm user/config.php
57 - "irc.freenode.org#YOURLS"