2FAuth/.travis.yml

38 lines
670 B
YAML
Raw Permalink Normal View History

dist: bionic
env:
- XDEBUG_MODE=coverage
2019-05-23 12:02:29 +00:00
language: php
php:
- 8.1
2023-09-13 08:03:14 +00:00
- 8.2
- 8.3
2019-05-23 12:02:29 +00:00
2022-04-01 12:09:34 +00:00
services:
2022-04-05 06:19:07 +00:00
- mysql
2022-04-01 12:09:34 +00:00
before_install:
2022-04-05 06:19:07 +00:00
- mysql -e 'CREATE DATABASE 2fauth_test;'
2022-04-01 12:09:34 +00:00
2019-05-23 12:02:29 +00:00
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction
2022-04-05 06:19:07 +00:00
- cp .env.travis .env
- php artisan key:generate
2019-05-23 12:02:29 +00:00
script:
2022-04-05 06:19:07 +00:00
- DATABASE=sqlite vendor/bin/phpunit --coverage-clover=coverage.xml
2022-04-01 16:02:26 +00:00
- php artisan config:clear
2022-04-05 06:19:07 +00:00
- DATABASE=mysql vendor/bin/phpunit -c phpunit-mysql.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