forked from php-coveralls/php-coveralls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (33 loc) · 1.56 KB
/
.travis.yml
File metadata and controls
38 lines (33 loc) · 1.56 KB
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
language: php
php:
- 5.6
- 5.5
- 5.4
- 5.3
- hhvm
matrix:
allow_failures:
- php: hhvm
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
- curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o php-cs-fixer.phar
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction --prefer-source
script:
- mkdir -p build/logs
#- php -n php-cs-fixer.phar fix -v --dry-run --level=all src
- output=$(php -n php-cs-fixer.phar fix -v --dry-run --level=all src); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;
- php vendor/bin/phpcs --report=checkstyle --report-file=build/logs/checkstyle.xml --standard=build/config/phpcs.xml --ignore=*.html.php,*.config.php,*.twig.php src
- php vendor/bin/phpmd src xml build/config/phpmd.xml --reportfile build/logs/pmd.xml
- cp ~/xdebug.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- php vendor/bin/phpunit -c travis.phpunit.xml
- rm ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
after_script:
- curl -s https://gist.github.com/satooshi/4750401/raw > travis/ColorCLI.php
- curl -s https://gist.github.com/satooshi/4752226/raw > travis/junit.php
- curl -s https://gist.github.com/satooshi/4958593/raw > travis/pmd.php
- curl -s https://gist.github.com/satooshi/4958909/raw > travis/checkstyle.php
- php travis/checkstyle.php
- php travis/pmd.php
- php travis/junit.php
- php composer/bin/coveralls -v --exclude-no-stmt