Skip to content

Commit efdc70a

Browse files
committed
Merge branch 'Fix-Code-Coverage'
Closes #71
2 parents a27acae + 273f977 commit efdc70a

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

.coveralls.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
service_name: travis-ci
2-
src_dir: src
1+
json_path: coveralls-upload.json

.travis.yml

+16-14
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,27 @@ sudo: false
22

33
language: php
44

5-
php:
6-
- 7.1
7-
- 7.2
8-
- 7.3
9-
- nightly
5+
dist: trusty
106

117
matrix:
8+
include:
9+
- php: 7.1
10+
env: ANALYSIS='true'
11+
- php: 7.2
12+
- php: 7.3
13+
- php: nightly
1214
allow_failures:
13-
- php: nightly
15+
- php: nightly
1416

1517
before_script:
16-
- composer require php-coveralls/php-coveralls:^2.1.0
17-
- composer install -n
18+
- composer require php-coveralls/php-coveralls:^2.1.0
19+
- composer install -n
1820

1921
script:
20-
- mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml
21-
- vendor/bin/phpunit
22-
- vendor/bin/phpcs
23-
- vendor/bin/phpstan analyse src tests
22+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
23+
- vendor/bin/phpunit
24+
- vendor/bin/phpcs
25+
- vendor/bin/phpstan analyse src tests
2426

25-
after_script:
26-
- php vendor/bin/coveralls -v
27+
after_success:
28+
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/php-coveralls --coverage_clover=clover.xml -v ; fi

0 commit comments

Comments
 (0)