2022-03-31 12:03:18 +02:00
|
|
|
env:
|
|
|
|
- XDEBUG_MODE=coverage
|
|
|
|
|
2019-05-23 14:02:29 +02:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2020-10-12 18:50:39 +02:00
|
|
|
- 7.4
|
2022-04-04 10:30:23 +02:00
|
|
|
# - 8.0
|
2019-05-23 14:02:29 +02:00
|
|
|
|
2022-04-01 14:09:34 +02:00
|
|
|
services:
|
2022-04-04 10:30:23 +02:00
|
|
|
# - mysql
|
2022-04-01 14:09:34 +02:00
|
|
|
|
|
|
|
before_install:
|
2022-04-04 10:30:23 +02:00
|
|
|
# - mysql -e 'CREATE DATABASE 2fauth_test;'
|
2022-04-01 14:09:34 +02:00
|
|
|
|
2019-05-23 14:02:29 +02:00
|
|
|
before_script:
|
2020-03-12 08:51:03 +01:00
|
|
|
- travis_retry composer self-update
|
2022-04-01 15:37:13 +02:00
|
|
|
- travis_retry composer install --no-interaction
|
2022-04-01 13:42:24 +02:00
|
|
|
# no need to use a dedicated Travis .env file as phpunit
|
|
|
|
# will use .env.testing by default
|
2019-05-23 14:02:29 +02:00
|
|
|
|
|
|
|
script:
|
2022-04-04 10:30:23 +02:00
|
|
|
# - DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.xml
|
2022-04-04 10:17:28 +02:00
|
|
|
- cp .env.travis .env
|
2022-04-01 18:02:26 +02:00
|
|
|
- php artisan config:clear
|
2022-04-04 10:17:28 +02:00
|
|
|
- php artisan key:generate
|
2022-04-04 10:30:23 +02:00
|
|
|
- sqlite3 --version
|
2022-04-01 14:09:34 +02:00
|
|
|
- DATABASE=sqlite vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml
|
2020-03-12 08:51:03 +01:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
# Submit coverage report to https://codecov.io
|
2022-04-04 10:30:23 +02:00
|
|
|
# - bash <(curl -s https://codecov.io/bash)
|
2020-03-12 08:51:03 +01:00
|
|
|
|
|
|
|
# Monitor only these branches
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2022-03-31 09:55:59 +02:00
|
|
|
- dev
|