-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
47 lines (39 loc) · 1.1 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
37
38
39
40
41
42
43
44
45
46
47
dist: trusty
language: php
php:
- 7.1
- 7.2
services:
- postgresql
sudo: true
cache:
directories:
- $HOME/.composer/cache
before_script:
- sudo apt-get -y update
- sudo apt-get -y install google-chrome-stable
- cp .env.travis .env
- cp .env.travis .env.dusk.local
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
- php artisan key:generate
- psql -c 'create database teste;' -U postgres
- psql -c 'create user vagrant;' -U postgres
- psql -c "alter user vagrant with encrypted password 'vagrant'" -U postgres;
- psql -c 'grant all privileges on database teste to vagrant' -U postgres
- php artisan migrate
- php artisan db:seed
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./vendor/laravel/dusk/bin/chromedriver-linux &
- php artisan serve &
script:
- php artisan migrate
- php artisan dusk
after_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == '7.2' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi
notifications:
email: false