blob: 84029b964beef91b4f83f5563e54daf2441fdb7e [file] [log] [blame]
Taufan Aditya3a63e442012-02-17 23:28:17 +07001language: php
2
Timothy Warrena963fbf2012-03-23 10:11:07 -04003php:
Taufan Aditya3a63e442012-02-17 23:28:17 +07004 - 5.3
5 - 5.4
6
Taufan Adityaa8a2e332012-03-29 03:56:46 +07007env:
8 - DB=mysql
9 - DB=pgsql
10 - DB=sqlite
11
Taufan Aditya3a63e442012-02-17 23:28:17 +070012before_script:
Taufan Adityacfc59242012-02-17 23:53:13 +070013 - pyrus channel-discover pear.php-tools.net
Taufan Aditya418c0bf2012-02-17 23:42:08 +070014 - pyrus install http://pear.php-tools.net/get/vfsStream-0.11.2.tgz
15 - phpenv rehash
Taufan Adityaa8a2e332012-03-29 03:56:46 +070016 - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
17 - sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database ci_test;' -U postgres; fi"
18 - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi"
Taufan Aditya3a63e442012-02-17 23:28:17 +070019
Taufan Adityaee2f5d02012-03-30 06:29:11 +070020script: phpunit --configuration tests/travis/$DB.phpunit.xml
Phil Sturgeon15a29e12012-03-14 10:51:36 +000021
Taufan Aditya02197502012-03-10 16:39:50 +070022branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000023 only:
Taufan Aditya02197502012-03-10 16:39:50 +070024 - develop
Phil Sturgeon15a29e12012-03-14 10:51:36 +000025 - master