mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-02 19:49:24 +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
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- "7.2"
|
- 7.1
|
||||||
|
- 7.2
|
||||||
|
- 7.3
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- cp .env.travis .env
|
- cp .env.travis .env
|
||||||
- composer self-update
|
- travis_retry composer self-update
|
||||||
- composer install --no-interaction
|
- travis_retry composer install --no-interaction
|
||||||
- php artisan key:generate
|
- php artisan key:generate
|
||||||
- nvm install node
|
- nvm install node
|
||||||
- npm install npm@latest -g
|
- npm install npm@latest -g
|
||||||
@ -14,4 +16,14 @@ before_script:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run dev
|
- 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