.travis.yml 403 Bytes
Newer Older
Taufan Aditya committed
1 2 3 4 5 6 7 8 9
language: php

php:
  - 5.3
  - 5.4
  - 5.5

env:
  - DB=mysql
10
  - DB=postgres
Taufan Aditya committed
11 12 13

before_script:
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi"
14 15
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -U postgres -c 'drop database if exists yiitest;'; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -U postgres -c 'create database yiitest;'; fi"
Taufan Aditya committed
16
script: phpunit