forked from ezsystems/ezpublish-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
branches:
only:
- master
env:
global:
- DB_NAME="testdb"
matrix:
- DB="mysql" DB_USER="root" TIMEZONE="Asia/Calcutta"
- DB="mysql" DB_USER="root" TIMEZONE="America/New_York"
- DB="postgresql" DB_USER="postgres" TIMEZONE="Asia/Calcutta"
matrix:
exclude:
- php: 5.3
env: DB="mysql" DB_USER="root" TIMEZONE="America/New_York"
- php: 5.4
env: DB="mysql" DB_USER="root" TIMEZONE="Asia/Calcutta"
- php: 5.4
env: DB="postgres" DB_USER="postgres" TIMEZONE="Asia/Calcutta"
- php: 5.5
env: DB="mysql" DB_USER="root" TIMEZONE="America/New_York"
before_script:
- if [ $DB == "mysql" ]; then mysql -e "CREATE DATABASE IF NOT EXISTS $DB_NAME;" -u$DB_USER ; fi
- if [ $DB == "postgresql" ]; then psql -c "CREATE DATABASE $DB_NAME;" -U $DB_USER ; psql -c "CREATE EXTENSION pgcrypto;" -U $DB_USER $DB_NAME ; fi
- php bin/php/ezpgenerateautoloads.php -s -e
- composer install --prefer-source
script:
- php -d date.timezone=$TIMEZONE tests/runtests.php --dsn "$DB://${DB_USER}@127.0.0.1/$DB_NAME"
notification:
email: false
git:
depth: 30