-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
55 lines (47 loc) · 1.41 KB
/
shippable.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
46
47
48
49
50
51
52
53
54
55
language: php
php:
# - 5.3.3 Broken on Shippable (does not compile)
- 5.3
- 5.4
- 5.5
- 5.6
branches:
only:
# - master
- "5.4"
- stable-5.3
env:
global:
- DB_NAME="testdb"
matrix:
- DB="mysql" DB_USER="root"
- DB="postgresql" DB_USER="postgres"
# Aim to run tests on all versions of php, make sure each db is run at least once
matrix:
exclude:
# - php: 5.3.3
# env: DB="postgresql" DB_USER="postgres"
- php: 5.3
env: DB="mysql" DB_USER="root"
- php: 5.4
env: DB="postgresql" DB_USER="postgres"
- php: 5.5
env: DB="mysql" DB_USER="root"
- php: 5.6
env: DB="postgresql" DB_USER="postgres"
before_script:
- composer selfupdate
- 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
- composer install --prefer-source
- php bin/php/ezpgenerateautoloads.php -s -e
# Detecting timezone issues by testing on random timezone
- TEST_TIMEZONES=("America/New_York" "Asia/Calcutta" "UTC")
- TEST_TIMEZONE=${TEST_TIMEZONES["`shuf -i 0-2 -n 1`"]}
- echo "$TEST_TIMEZONE"
script:
- php -d date.timezone=$TEST_TIMEZONE tests/runtests.php --dsn "$DB://${DB_USER}@127.0.0.1/$DB_NAME" tests extension/ezoe
notification:
email: false
git:
depth: 30