Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit b404cba

Browse files
committed
Adding travis integration
1 parent bf4d1d6 commit b404cba

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: php
2+
3+
php:
4+
- '5.5'
5+
- '5.6'
6+
- '7.0'
7+
- '7.1'
8+
9+
#services:
10+
# - mysql
11+
12+
before_script:
13+
- composer install
14+
# - mysql -e 'create database dsql_test;'
15+
16+
after_script:
17+
- echo $TRAVIS_PHP_VERSION
18+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then echo "Sending coverage report"; vendor/bin/test-reporter; fi
19+
20+
script:
21+
- if [[ ${TRAVIS_PHP_VERSION:0:3} != "7.0" ]]; then NC="--no-coverage"; fi
22+
- ./vendor/phpunit/phpunit/phpunit $NC
23+
24+
cache:
25+
directories:
26+
- $HOME/.composer/cache
27+
28+
notifications:
29+
urls:
30+
- https://webhooks.gitter.im/e/b33a2db0c636f34bafa9
31+
32+
on_success: change # options: [always|never|change] default: always
33+
on_failure: always # options: [always|never|change] default: always
34+
on_start: never # options: [always|never|change] default: always
35+
36+
email: false

0 commit comments

Comments
 (0)