27 - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
29 # Use same branch in YOURLS and YOURLS-unit-tests
30 export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
31 echo "Current YOURLS branch: $CURRENT_BRANCH"
33 if [ `git checkout $CURRENT_BRANCH &> /dev/null; echo $?` == 0 ]
35 echo "Using branch $CURRENT_BRANCH for Tests as well"
37 echo "Using branch master for Tests"
40 - git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
41 - cp user/languages/fr/fr_FR.* user/languages
42 - mysql -e 'create database IF NOT EXISTS yourls_tests;'
43 - cp tests/yourls-tests-config-travis.php user/config.php
45 script: phpunit --configuration ./tests/phpunit-travis.xml.dist