forked from spira/spira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 1.06 KB
/
.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.5
addons:
postgresql: "9.3"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libnotify-bin
before_script:
- psql -c 'create database spira;' -U postgres
- travis_retry npm install --no-spin --quiet -g gulp newman http-server
- travis_retry npm install --no-spin
- travis_retry gulp bower:install
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --working-dir api
- travis_retry composer install --prefer-source --no-interaction
- travis_retry gem install mailcatcher
- gulp build
- composer dumpautoload -o --working-dir api
- cp ./api/.travis.env ./api/.env
- php ./api/artisan migrate --seed
- php ./api/artisan serve --port 8000 --host 127.0.0.1 --quiet 2>&1 >/dev/null & #start api server
- http-server ./app/build/ -p 8001 2>&1 >/dev/null & #start webserver
- mailcatcher # start mailcatcher server
- sleep 5 #give server some time to boot
script:
- gulp test
- ./node_modules/.bin/cucumber.js
after_script:
- php ./vendor/bin/coveralls -v