-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
39 lines (34 loc) · 924 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
os:
- linux
language: php
php:
# - '5.6'
# - '7.0'
# - '7.1'
# - '7.2'
# - '7.3'
# - '7.4'
- '8.1'
- '8.2'
- '8.3'
services:
# - mongodb
- mysql
before_script:
- sleep 10
# - mongo horizontlaravel --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]})
- mysql -e 'CREATE DATABASE IF NOT EXISTS horizontlaravel;'
- composer self-update --1
- composer install --no-interaction
- nvm install node
- npm install
- npm run production
- php artisan serve > /dev/null 2>&1 &
script:
- php artisan migrate --no-interaction --force
- php artisan db:seed --no-interaction --force
- export INSTALLED=YES
- XDEBUG_MODE=coverage vendor/bin/phpunit --testsuite Unit,Integration --coverage-clover reports/coverage.xml
- if [ -f "reports/coverage.xml" ]; then vendor/bin/codacycoverage clover reports/coverage.xml; fi
- php artisan --version
- php artisan hcms:version