forked from Piplin/Piplin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (32 loc) · 900 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
41
42
language: php
php:
- 7.0
sudo: false
cache:
directories:
- $HOME/.composer/cache
services:
- postgresql
- redis-server
addons:
postgresql: "9.3"
before_install:
- if [[ $TRAVIS_PHP_VERSION != 7.1 ]] ; then phpenv config-rm xdebug.ini; fi
install:
- composer install --no-interaction --no-scripts --prefer-source --no-suggest
before_script:
- cp .env.example .env
- sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=pgsql/g' .env
- sed -i 's/DB_USERNAME=fixhub/DB_USERNAME=postgres/g' .env
- php artisan key:generate
- psql -c 'create database fixhub;' -U postgres
- php artisan migrate --seed --env="testing"
- php vendor/bin/codecept build
- make file-permission
- sleep 5
- php -S 127.0.0.1:8000 -t public/ 2>&1 >/dev/null &
script:
- make cs
- php vendor/bin/codecept run
after_script:
- cat $TRAVIS_BUILD_DIR/storage/logs/*.log