forked from solariumphp/solarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 2.15 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
language: php
dist: trusty
php:
- 7.3
- 7.2
- nightly
env:
- SYMFONY_VERSION=4.2.* SOLR_VERSION=8.1.1 SOLR_CLOUD=true
- SYMFONY_VERSION=4.2.* SOLR_VERSION=8.1.1 SOLR_CLOUD=false
- SYMFONY_VERSION=4.2.* SOLR_VERSION=7.7.2 SOLR_CLOUD=true
- SYMFONY_VERSION=4.2.* SOLR_VERSION=7.7.2 SOLR_CLOUD=false
- SYMFONY_VERSION=4.2.* SOLR_VERSION=6.6.6 SOLR_CLOUD=false
- SYMFONY_VERSION=3.3.* SOLR_VERSION=6.6.6 SOLR_CLOUD=false
cache:
directories:
- $HOME/.composer/cache
- solr_downloads
before_install:
- composer global require "hirak/prestissimo:^0.3"
- ls solr_downloads/
- wget -nc --continue -v --tries=3 --directory-prefix=solr_downloads "http://archive.apache.org/dist/lucene/solr/${SOLR_VERSION}/solr-${SOLR_VERSION}.tgz"
- tar -xzf solr_downloads/solr-${SOLR_VERSION}.tgz
before_script:
# - pecl install pecl_http
- composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION}
- |
if [ ${SOLR_CLOUD} == "true" ]; then
solr-${SOLR_VERSION}/bin/solr start -e cloud -noprompt || travis_terminate 1;
solr-${SOLR_VERSION}/bin/solr delete -c gettingstarted || travis_terminate 1;
solr-${SOLR_VERSION}/bin/solr create -c techproducts -s 2 -rf 2 -d solr-${SOLR_VERSION}/server/solr/configsets/sample_techproducts_configs/conf -n sample_techproducts_configs || travis_terminate 1;
solr-${SOLR_VERSION}/bin/post -c techproducts solr-${SOLR_VERSION}/example/exampledocs/*.xml || travis_terminate 1;
else
solr-${SOLR_VERSION}/bin/solr start -e techproducts || travis_terminate 1;
# make configsets available for techproducts instance for core admin tests
cp -R solr-${SOLR_VERSION}/server/solr/configsets solr-${SOLR_VERSION}/example/techproducts/solr/ || travis_terminate 1;
fi
script:
- |
if [ ${SOLR_CLOUD} == "true" ]; then
vendor/bin/phpunit -c phpunit.xml.travis --exclude-group solr_no_cloud -v || travis_terminate 1;
else
vendor/bin/phpunit -c phpunit.xml.travis --exclude-group solr_cloud -v || travis_terminate 1;
fi
after_success:
- travis_retry php vendor/bin/php-coveralls -v
matrix:
allow_failures:
- php: nightly
sudo: false