]> CyberLeo.Net >> Repos - Github/YOURLS.git/blob - .travis.yml
unit test with php 7.1
[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
12 env:
13   - DB=mysql
14
15 before_script:
16   - git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
17   - git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
18   - cp user/languages/fr/fr_FR.* user/languages
19   - mysql -e 'create database IF NOT EXISTS yourls_tests;'
20   - cp tests/yourls-tests-config-travis.php user/config.php
21
22 script: phpunit --configuration ./tests/phpunit-travis.xml.dist
23
24 after_script: rm user/config.php
25
26 notifications:
27   email: false
28   irc:
29     channels:
30       - "irc.freenode.org#YOURLS"
31     use_notice: true