-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
.travis.yml
53 lines (46 loc) · 1.19 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
48
49
50
51
52
53
language: php
sudo: required
dist: trusty
php:
- '8.0'
#env:
# - NODE_RELEASE=10.x
before_script:
- cp .env.travis .env
# - sudo rm -rf ~/.nvm
# - curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}" | sudo -E bash -
# - sudo apt-get install -y nodejs
# - sudo npm i -g npm
- mysql -u root -ppoowf -e 'create database invoiceneko_test;'
- composer self-update
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- php artisan migrate
- php artisan key:generate
- npm i -g npm
- npm install
- npm run prod
- node -v
- php -v
script:
- vendor/bin/phpunit
- php artisan dusk
addons:
chrome: stable
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('poowf') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -ppoowf
- sudo service mysql restart
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
services:
- mysql
cache:
directories:
- node_modules
- vendor