]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - .travis.yml
Remove [Remove xdebug]
[Github/YOURLS.git] / .travis.yml
1 sudo: false
2 dist: trusty
3 language: php
4
5 env:
6   global:
7   - DB=mysql
8
9 matrix:
10   include:
11   - php: 5.3
12     dist: precise
13   - php: 5.4
14   - php: 5.5
15   - php: 5.6
16   - php: 7.0
17   - php: 7.1
18   - php: 7.2
19   - php: nightly
20   - php: hhvm
21   fast_finish: true
22   allow_failures:
23   - php: nightly
24   - php: 7.2
25   - php: hhvm
26
27 before_script:
28   - which phpunit
29   - phpunit --version
30   - mysql --version
31   - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
32   - |
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"
36     cd tests
37     if [ `git checkout $CURRENT_BRANCH &> /dev/null; echo $?` == 0 ]
38     then
39       echo "Using branch $CURRENT_BRANCH for Tests as well"
40     else
41       echo "Using branch master for Tests"
42     fi
43     cd ..
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
48
49 script: phpunit --configuration ./tests/phpunit-travis.xml.dist
50
51 notifications:
52   email: false