Skip to content

Commit d7340db

Browse files
committed
add settings codecov to travis ci config
1 parent c341090 commit d7340db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@ language: php
22

33
sudo: false
44

5+
env:
6+
global:
7+
- CODECOV_TOKEN=
8+
59
matrix:
610
include:
711
- php: 7.1
812
- php: 7.2
913
- php: 7.3
14+
env: PHPUNIT_COVERAGE_TEST=1
1015

1116
before_script:
1217
- composer install
1318

1419
script:
15-
- phpunit
20+
- phpunit
21+
22+
after_success:
23+
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f report/coverage.xml -t $CODECOV_TOKEN; fi

0 commit comments

Comments
 (0)