-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
66 lines (59 loc) · 3.64 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
## Run on trusty environment as solr dies all the time on containers after travis move to gce
dist: trusty
sudo: required
language: php
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.3
env: TEST_CONFIG="phpunit.xml"
- php: 7.4
env: TEST_CONFIG="phpunit.xml"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-legacy.xml"
- php: 7.4
env: TEST_CONFIG="phpunit-integration-legacy.xml"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="single" SOLR_CORES="collection1"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="dedicated"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="cloud" SOLR_CLOUD="yes"
- php: 7.3
env: TEST_CONFIG="phpunit-integration-solr.xml" SOLR_VERSION="8.6.1" CORES_SETUP="cloud" SOLR_CLOUD="yes" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml tests/lib/Resources/config/search/solr/8.6/solrconfig.xml tests/lib/Resources/config/search/solr/custom-fields-types.xml"
- php: 7.3
env: TEST_CONFIG="vendor/ezsystems/ezplatform-kernel/phpunit-integration-legacy-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="shared" REGRESSION="yes"
- php: 7.3
env: TEST_CONFIG="vendor/ezsystems/ezplatform-kernel/phpunit-integration-legacy-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="cloud" SOLR_CLOUD="yes" REGRESSION="yes"
- php: 7.3
env: TEST_CONFIG="vendor/ezsystems/ezplatform-kernel/phpunit-integration-legacy-solr.xml" SOLR_VERSION="8.6.1" CORES_SETUP="cloud" SOLR_CLOUD="yes" REGRESSION="yes" SOLR_CONFIG="vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml vendor/ezsystems/ezplatform-solr-search-engine/lib/Resources/config/solr/language-fieldtypes.xml tests/lib/Resources/config/search/solr/8.6/solrconfig.xml tests/lib/Resources/config/search/solr/custom-fields-types.xml"
- php: 7.4
env: TEST_CONFIG="phpunit-integration-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="dedicated"
- php: 7.4
env: TEST_CONFIG="vendor/ezsystems/ezplatform-kernel/phpunit-integration-legacy-solr.xml" SOLR_VERSION="7.7.3" CORES_SETUP="shared" REGRESSION="yes"
branches:
only:
- master
- /^\d.\d+$/
before_script:
- phpenv config-rm xdebug.ini
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- if [ "$COMPOSER_REQUIRE" != "" ]; then
composer require --no-update $COMPOSER_REQUIRE;
fi
- travis_retry composer update --prefer-dist --no-interaction
- if [[ $TEST_CONFIG = *"solr"* ]]; then
./bin/.travis/init_solr.sh;
fi
- if [ "$REGRESSION" = "yes" ]; then
sed -i.bak s/EzSystems\\\\EzPlatformSolrSearchEngine\\\\Tests\\\\SetupFactory\\\\LegacySetupFactory/Netgen\\\\EzPlatformSearchExtra\\\\Tests\\\\Integration\\\\SetupFactory\\\\Solr/g $TEST_CONFIG;
sed -i.bak "s/eZ\/Publish\/API\/Repository\/Tests\/SearchServiceTest.php/..\/..\/..\/tests\/lib\/Kernel\/SearchServiceTest.php/g" $TEST_CONFIG;
sed -i.bak "s/eZ\/Publish\/API\/Repository\/Tests\/SearchServiceLocationTest.php/..\/..\/..\/tests\/lib\/Kernel\/SearchServiceLocationTest.php/g" $TEST_CONFIG;
fi
script:
- php vendor/bin/phpunit --bootstrap tests/bootstrap.php -c $TEST_CONFIG
notifications:
email: false