blob: 62acf05e53a4aa7e2cdf3c88517ce1a50669a019 [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
Alex Bilbie88e38572012-09-12 18:45:21 +02006
7services:
8 - mysql
9 - postgresql
10 - sqlite
Taufan Aditya3a63e442012-02-17 23:28:17 +070011
Taufan Adityaa8a2e332012-03-29 03:56:46 +070012env:
13 - DB=mysql
14 - DB=pgsql
15 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070016 - DB=pdo/mysql
17 - DB=pdo/pgsql
18 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070019
Taufan Aditya3a63e442012-02-17 23:28:17 +070020before_script:
Taufan Aditya6bca9f82012-05-25 01:55:36 +070021 - curl -s http://getcomposer.org/installer | php
22 - php composer.phar install
Taufan Aditya44015c82012-04-04 19:38:16 +070023 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
24 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'create database ci_test;' -U postgres; fi"
25 - sh -c "if [ '$DB' = 'mysql' ] || [ '$DB' = 'pdo/mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi"
Taufan Aditya3a63e442012-02-17 23:28:17 +070026
Taufan Aditya6c7526c2012-05-27 13:51:27 +070027script: phpunit --coverage-text --configuration tests/travis/$DB.phpunit.xml
Phil Sturgeon15a29e12012-03-14 10:51:36 +000028
Taufan Aditya02197502012-03-10 16:39:50 +070029branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000030 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030031 - develop
32 - /^feature\/.+$/