Skip to content

Commit da2cb23

Browse files
authored
Merge pull request #123 from slimphp/AddTravisCoverallsConfig
Add Travis-CI and PHP Coveralls config
2 parents 778f26a + b189fed commit da2cb23

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
json_path: coveralls-upload.json

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
dist: trusty
4+
5+
matrix:
6+
include:
7+
- php: 7.1
8+
- php: 7.2
9+
- php: 7.3
10+
env: ANALYSIS='true'
11+
- php: nightly
12+
13+
allow_failures:
14+
- php: nightly
15+
16+
before_script:
17+
- composer require php-coveralls/php-coveralls:^2.1.0
18+
- composer install -n
19+
20+
script:
21+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
22+
23+
after_success:
24+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi

0 commit comments

Comments
 (0)