forked from atk4/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (32 loc) · 1.14 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
language: php
php:
- '7.2'
- '7.3'
cache:
directories:
- $HOME/.composer/cache
#services:
# - mysql
before_script:
- composer install
# - mysql -e 'create database dsql_test;'
after_script:
- echo $TRAVIS_BRANCH
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter --coverage-report build/logs/clover.xml; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then echo "Sending codecov report"; TRAVIS_CMD="" bash <(curl -s https://codecov.io/bash) -f build/logs/clover.xml; fi
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.2" ]]; then NC="--no-coverage"; fi
- ./vendor/phpunit/phpunit/phpunit $NC
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/b33a2db0c636f34bafa9
- https://webhooks.gitter.im/e/c4000ab24556b09cb3e7
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
slack:
rooms:
- agiletoolkit:bjrKuPBf1h4cYiNxPBQ1kF6c#dsql
on_success: change
email: false