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