forked from mosufy/lumen-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 886 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
language: php
php:
- 5.6
- 7.0
branches:
only:
- master
services:
- elasticsearch
- redis-server
before_script:
- cp .env.travis .env
- mysql -e 'create database lumenapi_test;'
- composer self-update
- composer install --no-interaction
- chmod -R 777 storage/
- php artisan migrate
- php artisan db:seed
- sleep 10 # give artisan and elasticsearch some time to start
- php artisan elasticsearch:importIndex
- vendor/bin/codecept build
script:
- if [ "`phpenv version-name`" != "hhvm" ]; then vendor/bin/codecept run api,functional,unit --coverage --coverage-xml; fi
- if [ "`phpenv version-name`" == "hhvm" ]; then vendor/bin/codecept run api,functional,unit; fi
after_success:
- if [ "`phpenv version-name`" != "hhvm" ]; then bash <(curl -s https://codecov.io/bash); fi
after_failure:
- cat storage/logs/lumen.log
- cat tests/_output/*