Skip to content

Commit

Permalink
Merge branch 'Fix-Code-Coverage'
Browse files Browse the repository at this point in the history
Closes #71
  • Loading branch information
akrabat committed Nov 16, 2018
2 parents a27acae + 273f977 commit efdc70a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
service_name: travis-ci
src_dir: src
json_path: coveralls-upload.json
30 changes: 16 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ sudo: false

language: php

php:
- 7.1
- 7.2
- 7.3
- nightly
dist: trusty

matrix:
include:
- php: 7.1
env: ANALYSIS='true'
- php: 7.2
- php: 7.3
- php: nightly
allow_failures:
- php: nightly
- php: nightly

before_script:
- composer require php-coveralls/php-coveralls:^2.1.0
- composer install -n
- composer require php-coveralls/php-coveralls:^2.1.0
- composer install -n

script:
- mkdir -p build/logs && phpunit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit
- vendor/bin/phpcs
- vendor/bin/phpstan analyse src tests
- if [[ "$ANALYSIS" == 'true' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- vendor/bin/phpunit
- vendor/bin/phpcs
- vendor/bin/phpstan analyse src tests

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

0 comments on commit efdc70a

Please sign in to comment.