-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
58 lines (48 loc) · 1.97 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
dist: trusty
language: php
services:
- mysql
- postgresql
# Mysql isn't installed on trusty (only client is), so we need to specifically install it
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 7.3
env: TEST_CONFIG="phpunit.xml" CHECK_CS=true
- php: 7.3
env: TEST_CONFIG="phpunit-integration-legacy.xml"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-legacy-solr.xml" SOLR_VERSION="7.7.2" CORES_SETUP="shared" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/custom-fields-types.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-legacy-empty-db.xml" DB="postgresql" DATABASE="pgsql://postgres@localhost/testdb"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-legacy-empty-db.xml" DB="mysql" DATABASE="mysql://root@localhost/testdb"
# test only master (+ Pull requests)
branches:
only:
- master
- /^\d.\d+$/
# setup requirements for running db tests
before_install:
- ./bin/.travis/prepare_unittest.sh
before_script:
# Disable memory_limit for composer
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- travis_retry composer install --no-progress --no-interaction --prefer-dist
- if [ "$SOLR_VERSION" != "" ] ; then ./vendor/ezsystems/ezplatform-solr-search-engine/bin/.travis/init_solr.sh ; fi
script:
- php vendor/bin/phpunit -c $TEST_CONFIG
- if [ "$CHECK_CS" == "true" ]; then ./vendor/bin/php-cs-fixer fix -v --dry-run --diff --show-progress=estimating; fi
notifications:
email: false
# reduce depth (history) of git checkout
git:
depth: 30