forked from urlhum/UrlHum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 850 Bytes
/
.travis.yml
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
dist: focal
sudo: false
language: php
php:
- 7.4
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
before_script:
- cp .env.travis .env
- mysql -u root -e 'create database `urlhum-test`;'
- mysql -u root -e "CREATE USER 'urlhum-test'@'localhost' IDENTIFIED BY 'secret';"
- mysql -u root -e "GRANT ALL ON \`urlhum-test\`.* TO 'urlhum-test'@'localhost';"
- mysql -u root -e "FLUSH PRIVILEGES;"
- composer install --prefer-dist --no-interaction
- php artisan key:generate
- php artisan clear-compiled -n
- php artisan migrate --force -n --database=testing
- php artisan db:seed --force -n --database=testing
- php artisan settings:set
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- cat storage/logs/laravel.log
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml