-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
39 lines (31 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
php:
- 5.5
- 5.6
- 7.0
env:
matrix:
- NETTE=nette-2.4
- NETTE=nette-2.3
- NETTE=nette-2.2
- NETTE=nette-2.1
before_install:
- travis_retry composer self-update
- wget -O /tmp/composer-nette https://raw.githubusercontent.com/Kdyby/TesterExtras/master/bin/composer-nette.php
- php /tmp/composer-nette
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then COVERAGE="-c `php -i | grep 'xdebug.ini'` --coverage coverage.xml --coverage-src src/"; else COVERAGE="" && if [ $TRAVIS_PHP_VERSION = '5.6' ]; then phpenv config-rm xdebug.ini; fi; fi
install:
- composer install --no-interaction --prefer-source
script:
- vendor/bin/phpcs --standard=standards.xml --extensions=php --encoding=utf-8 -sp src/
- vendor/bin/tester -p php $COVERAGE tests/
after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
fi