forked from apiato/apiato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (29 loc) · 870 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
language: php
php:
- '7.1'
dist: trusty
sudo: false
env:
global:
- setup=stable
matrix:
fast_finish: true
include:
- php: 7.1
env: setup=normal
before_install:
- travis_retry composer self-update
install:
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --prefer-stable --no-interaction --no-suggest; fi
- if [[ $setup = 'normal' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
before_script:
- cp .env.travis .env
- mysql -e 'create database apiato_db;'
- php artisan key:generate
- php artisan migrate --seed
- php artisan passport:install
script: vendor/bin/phpunit
after_failure:
- echo --------------- Begin > Laravel.log ---------------
- cat storage/logs/laravel.log
- echo --------------- End > Laravel.log ---------------