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 |
Taufan Aditya | 6a96bf7 | 2012-04-04 19:13:03 +0700 | [diff] [blame] | 11 | - DB=pdo/mysql |
| 12 | - DB=pdo/pgsql |
| 13 | - DB=pdo/sqlite |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 14 | |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 15 | before_script: |
Taufan Aditya | 6bca9f8 | 2012-05-25 01:55:36 +0700 | [diff] [blame] | 16 | - curl -s http://getcomposer.org/installer | php |
| 17 | - php composer.phar install |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 18 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi" |
| 19 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'create database ci_test;' -U postgres; fi" |
| 20 | - sh -c "if [ '$DB' = 'mysql' ] || [ '$DB' = 'pdo/mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi" |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 21 | |
Taufan Aditya | 6c7526c | 2012-05-27 13:51:27 +0700 | [diff] [blame^] | 22 | script: phpunit --coverage-text --configuration tests/travis/$DB.phpunit.xml |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 23 | |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 24 | branches: |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 25 | only: |
Taufan Aditya | 76e2f03 | 2012-05-25 02:18:59 +0700 | [diff] [blame] | 26 | - develop |