Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 1 | language: php |
| 2 | |
Timothy Warren | a963fbf | 2012-03-23 10:11:07 -0400 | [diff] [blame] | 3 | php: |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 4 | - 5.3 |
| 5 | - 5.4 |
| 6 | |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame^] | 7 | env: |
| 8 | - DB=mysql |
| 9 | - DB=pgsql |
| 10 | - DB=sqlite |
| 11 | |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 12 | before_script: |
Taufan Aditya | cfc5924 | 2012-02-17 23:53:13 +0700 | [diff] [blame] | 13 | - pyrus channel-discover pear.php-tools.net |
Taufan Aditya | 418c0bf | 2012-02-17 23:42:08 +0700 | [diff] [blame] | 14 | - pyrus install http://pear.php-tools.net/get/vfsStream-0.11.2.tgz |
| 15 | - phpenv rehash |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame^] | 16 | - 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 Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 19 | |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 20 | script: phpunit --configuration tests/phpunit.xml |
| 21 | |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 22 | branches: |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 23 | only: |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 24 | - develop |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 25 | - master |