forked from apiato/apiato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (29 loc) · 927 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
php:
- '7.4'
dist: trusty
sudo: false
env:
global:
- setup=stable
before_install:
- travis_retry composer self-update
install:
- if [[ $setup = 'stable' ]]; then COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update --prefer-dist --prefer-stable --no-interaction --no-suggest; fi
- if [[ $setup = 'normal' ]]; then COMPOSER_MEMORY_LIMIT=-1 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
cache:
directories:
- $HOME/.composer/cache
after_failure:
- echo --------------- Begin > Laravel.log ---------------
- cat storage/logs/laravel.log
- echo --------------- End > Laravel.log ---------------
after_success:
- php artisan -V