forked from Bubka/2FAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (29 loc) · 670 Bytes
/
.travis.yml
File metadata and controls
38 lines (29 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dist: bionic
env:
- XDEBUG_MODE=coverage
language: php
php:
- 8.1
- 8.2
- 8.3
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE 2fauth_test;'
before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction
- cp .env.travis .env
- php artisan key:generate
script:
- DATABASE=sqlite vendor/bin/phpunit --coverage-clover=coverage.xml
- php artisan config:clear
- 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