-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (35 loc) · 1.33 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
language: php
php:
- '5.6'
- '7.0'
- '7.1'
- '7.2'
services:
- mysql
before_install:
- npm install -g zombie
- npm get prefix
before_script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then php -S localhost:8888; fi &
- mysql -e 'create database atk4;'
- mysql atk4 < demos/atk4.sql
- mv demos/db.travis.php demos/db.php
- composer install
after_script:
- echo $TRAVIS_BRANCH
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter --coverage-report clover.xml; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then echo "Sending codecov report"; bash <(curl -s https://codecov.io/bash) -f clover.xml; fi
script:
- if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.1" ]]; then NC="--no-coverage"; fi
- ./vendor/phpunit/phpunit/phpunit $NC #- wget -O - http://localhost:8888/demos/button2.php
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then bash tools/test.sh; fi
cache:
directories:
- $HOME/.composer/cache
notifications:
urls:
- https://webhooks.gitter.im/e/b33a2db0c636f34bafa9
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
email: false