forked from phpbb/support-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 865 Bytes
/
.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
language: php
php:
- 5.3
- 5.4
env:
- DB=sqlite
- DB=mysql
- DB=postgres
matrix:
allow_failures:
- env: DB=sqlite
before_script:
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS stk_tests;" -U postgres; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "create database stk_tests;" -U postgres; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS stk_tests;" -uroot; fi
- pyrus install phpunit/DbUnit
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash
- ./scripts/python/vendor.py -f -s
script:
- phpcs -p -s --report-full --report-gitblame --standard=codesniffer stk/
- phpunit --configuration test/php/travis/$DB.travis.xml
notifications:
email:
recipients:
on_success: always
on_faillure: always
# branches:
# only:
# stk/ascraeus