-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
46 lines (36 loc) · 1.1 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
language: php
php:
- '7.3'
- '7.4'
addons:
mariadb: '10.3'
sudo: false
before_script:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- cp .env.testing .env
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction
- php artisan key:generate
before_install:
- mysql -e 'CREATE DATABASE indiehd_test;'
- mysql -e "CREATE USER 'homestead'@'%' IDENTIFIED BY 'secret';"
- mysql --user=root -e "GRANT ALL PRIVILEGES ON indiehd_test.* TO 'homestead'@'%' WITH GRANT OPTION;"
- mysql --user=root -e 'FLUSH PRIVILEGES;'
services:
- mysql
script:
- mkdir -p build/logs
- phpdbg -qrr vendor/bin/phpunit tests --coverage-clover build/logs/clover.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
- travis_retry php vendor/bin/php-coveralls -vvv
- ./send.sh success $DISCORD_WEBHOOK
after_failure:
- ./send.sh failure $DISCORD_WEBHOOK
notifications:
email:
# recipients:
# - gtaylor@electricwerks.com
# on_success: always
# on_failure: always
on_failure: change