mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Set Travis-CI to send code coverage reports to codecov.io
This commit is contained in:
parent
800d5ea56f
commit
28ed9fda6e
20
.travis.yml
20
.travis.yml
@ -1,12 +1,14 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- "7.2"
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
|
||||
before_script:
|
||||
- cp .env.travis .env
|
||||
- composer self-update
|
||||
- composer install --no-interaction
|
||||
- travis_retry composer self-update
|
||||
- travis_retry composer install --no-interaction
|
||||
- php artisan key:generate
|
||||
- nvm install node
|
||||
- npm install npm@latest -g
|
||||
@ -14,4 +16,14 @@ before_script:
|
||||
|
||||
script:
|
||||
- npm run dev
|
||||
- vendor/bin/phpunit
|
||||
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
|
||||
after_success:
|
||||
# Submit coverage report to https://codecov.io
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
# Monitor only these branches
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
Loading…
Reference in New Issue
Block a user