-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 721 Bytes
/
Copy path.travis.yml
File metadata and controls
29 lines (24 loc) · 721 Bytes
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
language: php
php:
- 5.6
- 7.1
before_script:
- composer self-update
- composer install --prefer-source --no-interaction
install:
- composer require jakub-onderka/php-parallel-lint
- |
if [ $(phpenv version-name) = "7.1" ]; then
composer require php-coveralls/php-coveralls;
composer require bmitch/churn-php;
fi
script:
- mkdir -p build/logs
- vendor/bin/parallel-lint --exclude vendor .
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml
- if [ $(phpenv version-name) = "7.1" ]; then vendor/bin/churn run src; fi
after_success:
- |
if [ $(phpenv version-name) = "7.1" ]; then
travis_retry php vendor/bin/php-coveralls -v;
fi