]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - .travis.yml
Remove password verification
[Github/YOURLS.git] / .travis.yml
1 sudo: false
2
3 language: php
4 php:
5   - 5.3
6   - 5.4
7   - 5.5
8   - 5.6
9   - 7.0
10   - 7.1
11   - hhvm
12
13 matrix:
14   allow_failures:
15   - php: hhvm
16
17 env:
18   - DB=mysql
19
20 before_script:
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
26   - |
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"; }`
30   - |
31     # Install the specified version of PHPUnit depending on the PHP version:
32     case "$TRAVIS_PHP_VERSION" in
33       7.1|7.0|hhvm)
34         echo "Using PHPUnit 5.7"
35         composer global require "phpunit/phpunit=5.7.*"
36         ;;
37       5.6|5.5|5.4|5.3)
38         echo "Using PHPUnit 4.8"
39         composer global require "phpunit/phpunit=4.8.*"
40         ;;
41       *)
42         echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
43         exit 1
44         ;;
45     esac
46   - which phpunit  
47   - phpunit --version
48
49 script: phpunit --configuration ./tests/phpunit-travis.xml.dist
50
51 after_script: rm user/config.php
52
53 notifications:
54   email: false
55   irc:
56     channels:
57       - "irc.freenode.org#YOURLS"
58     use_notice: true