/
.travis.yml
49 lines (39 loc) · 921 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
46
47
48
49
os:
- linux
language: php
php:
- 7.4
- 8.0
- nightly
jobs:
allow_failures:
- php: nightly
env:
- PHP_CS_FIXER_IGNORE_ENV=true
sudo: required
cache:
directories:
- $HOME/.composer/cache
services:
- mysql
before_script:
- phpenv config-add travis.ini
- cp .env.travis .env
- mysql -u root -e 'create database travis_ci;'
- composer self-update
- composer install --prefer-source --no-interaction
- php artisan key:generate
- composer dump-autoload
- composer validate --no-check-all --strict
- sudo chgrp -R www-data storage bootstrap/cache
- sudo chmod -R ug+rwx storage bootstrap/cache
- php artisan config:cache
- nvm install --lts --latest-npm --reinstall-packages-from='lts/*'
- npm install npm@latest -g
- npm install -g yarn
- yarn
- npm run development
script:
- composer run-script test
after_success:
- bash <(curl -s https://codecov.io/bash)