Skip to content

Commit 1f62d52

Browse files
committed
Improve CI configuration
1 parent 28a6122 commit 1f62d52

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage_clover: clover.xml
2+
json_path: coveralls-upload.json

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# .gitattributes
22
tests/ export-ignore
3+
.coveralls.yml export-ignore
4+
.gitattributes export-ignore
5+
.gitignore export-ignore
6+
.travis.yml export-ignore
7+
phpunit.xml.dist export-ignore
38

49
# Auto detect text files and perform LF normalization
510
* text=auto

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ php:
77
- 7.0
88
- hhvm
99

10+
matrix:
11+
include:
12+
- php: 5.4
13+
env: dependencies=lowest
14+
1015
before_script:
11-
- composer require satooshi/php-coveralls:dev-master --dev --no-progress
16+
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
17+
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then composer install -n ; fi
18+
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
1219

1320
script:
14-
- mkdir -p build/logs
15-
- phpunit --coverage-clover build/logs/clover.xml
21+
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
22+
- if [[ "$TRAVIS_PHP_VERSION" != '5.6' ]]; then vendor/bin/phpunit ; fi
1623

1724
after_script:
18-
- php vendor/bin/coveralls -v
25+
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then php vendor/bin/coveralls -v ; fi

0 commit comments

Comments
 (0)