-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
46 lines (36 loc) · 1.17 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:
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction
before_install:
- mysql -e 'CREATE DATABASE velkart_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
- 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:
# recipients:
# on_success: always
# on_failure: always
on_failure: change