forked from ezsystems/ezpublish-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (78 loc) · 3.84 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: php
# run tests on php misc php versions
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
# execute unit tests, integration test stubs and integration tests using legacy storage engine
env:
global:
- DB_NAME="testdb"
matrix:
- TEST_CONFIG="phpunit.xml" TIMEZONE="Asia/Calcutta"
- TEST_CONFIG="phpunit.xml" TIMEZONE="America/New_York"
- TEST_CONFIG="phpunit-integration-legacy.xml" TIMEZONE="Europe/Oslo"
- TEST_CONFIG="phpunit-integration-legacy.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/$DB_NAME" TIMEZONE="Asia/Calcutta"
- TEST_CONFIG="phpunit-integration-legacy.xml" DB="mysql" DATABASE="mysql://root@localhost/$DB_NAME" TIMEZONE="America/New_York"
- SOLR_VERSION="3.6.2" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- SOLR_VERSION="4.6.0" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
matrix:
allow_failures:
- php: 5.3.3
env: TEST_CONFIG="phpunit.xml" TIMEZONE="Asia/Calcutta"
exclude:
- php: 5.3.3
env: TEST_CONFIG="phpunit.xml" TIMEZONE="America/New_York"
- php: 5.3
env: TEST_CONFIG="phpunit.xml" TIMEZONE="Asia/Calcutta"
- php: 5.3
env: TEST_CONFIG="phpunit-integration-legacy.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/$DB_NAME" TIMEZONE="Asia/Calcutta"
- php: 5.3
env: TEST_CONFIG="phpunit-integration-legacy.xml" TIMEZONE="Europe/Oslo"
- php: 5.3
env: TEST_CONFIG="phpunit-integration-legacy.xml" TIMEZONE="Asia/Calcutta"
- php: 5.3
env: SOLR_VERSION="3.6.2" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- php: 5.3
env: SOLR_VERSION="4.6.0" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- php: 5.4
env: TEST_CONFIG="phpunit-integration-legacy.xml" DB="mysql" DATABASE="mysql://root@localhost/$DB_NAME" TIMEZONE="America/New_York"
- php: 5.4
env: TEST_CONFIG="phpunit-integration-legacy.xml" TIMEZONE="Europe/Oslo"
- php: 5.4
env: TEST_CONFIG="phpunit.xml" TIMEZONE="America/New_York"
- php: 5.4
env: SOLR_VERSION="4.6.0" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- php: 5.5
env: TEST_CONFIG="phpunit.xml" TIMEZONE="Asia/Calcutta"
- php: 5.5
env: TEST_CONFIG="phpunit-integration-legacy.xml" TIMEZONE="Europe/Oslo"
- php: 5.5
env: SOLR_VERSION="3.6.2" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- php: 5.5
env: SOLR_VERSION="4.6.0" TEST_CONFIG="phpunit-integration-legacy-solr.xml" TIMEZONE="America/New_York"
- php: 5.5
env: TEST_CONFIG="phpunit-integration-legacy.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/$DB_NAME" TIMEZONE="Asia/Calcutta"
- php: 5.5
env: TEST_CONFIG="phpunit-integration-legacy.xml" DB="mysql" DATABASE="mysql://root@localhost/$DB_NAME" TIMEZONE="America/New_York"
# test only master (+ Pull requests)
branches:
only:
- master
# setup requirements for running unit tests
before_script:
- if [ $DB == "mysql" ]; then mysql -e "CREATE DATABASE IF NOT EXISTS $DB_NAME;" -uroot ; fi
- if [ $DB == "postgresql" ]; then psql -c "CREATE DATABASE $DB_NAME;" -U postgres ; psql -c "CREATE EXTENSION pgcrypto;" -U postgres $DB_NAME ; fi
- cp config.php-DEVELOPMENT config.php
- ./composer_install_github_key.sh
- composer install --dev --prefer-source
- "if [ \"$TEST_CONFIG\" = \"phpunit-integration-legacy-solr.xml\" ] ; then curl https://raw.github.com/moliware/travis-solr/master/travis-solr.sh | SOLR_CONFS=eZ/Publish/Core/Persistence/Solr/Content/Search/schema.xml bash ; fi"
# execute phpunit as the script command
script: "phpunit -d date.timezone=$TIMEZONE -d memory_limit=-1 -c $TEST_CONFIG"
# disable mail notifications
notification:
email: false
# reduce depth (history) of git checkout
git:
depth: 30