forked from cretueusebiu/laravel-vue-spa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (36 loc) · 899 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
43
44
45
sudo: required
language: php
dist: trusty
# Keep the cache between builds to speed up installs
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
- node_modules
addons:
chrome: stable
php:
- 7.2
- 7.3
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE laravel_vue_spa;'
- travis_retry composer self-update && composer --version
- nvm install 'lts/*'
- npm i -g npm
install:
- cp .env.dusk.testing .env
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- npm install --no-audit --no-progress --quiet
- npm run production
before_script:
- google-chrome-stable --version
- php artisan dusk:chrome-driver
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- php artisan dusk
- vendor/bin/phpunit
notifications:
email: false