-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (32 loc) · 767 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
35
36
37
38
39
40
language: php
dist: xenial
notifications:
email: false
php:
- 7.2
services:
- mysql
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade
- sudo service mysql restart
- mysql -e 'create database homestead_test;'
before_script:
- cp .env.travis .env
- composer install --no-interaction
- php artisan key:generate
- php artisan storage:link
script:
# Set up db
- php artisan migrate
- php artisan db:seed
- php artisan passport:install
# Run tests
- ./vendor/bin/phpunit