Skip to content

Commit

Permalink
Update .travis.yml (#3)
Browse files Browse the repository at this point in the history
* Update .travis.yml

* Add coverals SDK to dev requirements

* Update composer.json

* Update .coveralls.yml

* Update .travis.yml

* Update composer.json
  • Loading branch information
slavcodev authored Dec 9, 2018
1 parent 9715f90 commit fd5985f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# for php-coveralls
service_name: travis-ci
src_dir: src
coverage_clover: build/logs/coverage.xml
coverage_clover: build/logs/clover.xml
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ install:
script:
# PHPUnit
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then mkdir -p build/logs ; fi
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/coverage.xml ; else ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/clover.xml ; else ./vendor/bin/phpunit ; fi
# PHP CS Fixer
- if [[ EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi

after_success:
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then .vendor/bin/php-coveralls -v ; fi
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/php-coveralls -v ; fi
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

"require-dev": {
"friendsofphp/php-cs-fixer": "^2.8",
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": "^7.5",
"php-coveralls/php-coveralls": "^2.1"
},

"autoload": {
Expand Down

0 comments on commit fd5985f

Please sign in to comment.