forked from Hasnayeen/invobook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (27 loc) · 865 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
language: php
php:
- '7.1.3'
install:
- composer install --no-interaction --prefer-dist --no-suggest
- cp .env.travis .env
- php artisan key:generate
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
services:
- mysql
before_script:
- mysql -e 'CREATE DATABASE goodwork;'
- php artisan migrate
- phantomjs --webdriver=127.0.0.1:9515 &
- php artisan serve &
- sleep 5
- php artisan config:clear
script:
- vendor/bin/phpunit --coverage-clover=clover.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
on_success: never
on_failure: always