forked from HDInnovations/UNIT3D-Community-Edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (32 loc) · 1.01 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
language: php
php:
- '7.4'
addons:
mariadb: '10.3'
before_script:
- composer install --prefer-source --no-interaction
- php artisan key:generate --env testing
- npm install
- npm run prod
before_install:
- mysql -e 'CREATE DATABASE unit3d_test;'
- mysql -e "CREATE USER 'homestead'@'%' IDENTIFIED BY 'secret';"
- mysql --user=root -e "GRANT ALL PRIVILEGES ON unit3d_test.* TO 'homestead'@'%' WITH GRANT OPTION;"
- mysql --user=root -e 'FLUSH PRIVILEGES;'
services:
- mysql
script:
- mkdir -p build/logs
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
notifications:
email:
on_failure: change