Skip to content

Commit 4e7e968

Browse files
authored
Update .travis.yml
Set up code coverage
1 parent 049b638 commit 4e7e968

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
language: php
2-
2+
stages:
3+
- test
4+
-
35
php:
46
- 5.6
57
- 7.0
68
- 7.1
79
- 7.2
810
- 7.3
9-
1011
# faster builds on new travis setup not using sudo
1112
sudo: false
1213

1314
install:
1415
- '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};'
1516
- travis_retry composer self-update && composer --version
16-
- travis_retry composer update --prefer-dist --no-interaction
17-
17+
- travis_retry composer install --prefer-dist --no-interaction
18+
- phpenv config-rm xdebug.ini
19+
- if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]]; then pecl install -f pcov; fi
20+
1821
script:
1922
- php ./vendor/bin/codecept run
23+
- if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]]; then php ./vendor/bin/codecept run --coverage-xml; fi
24+
after_script:
25+
- if [[ "$TRAVIS_PHP_VERSION" == "7.3" ]]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml -f pcov; fi

0 commit comments

Comments
 (0)