Commit 35e59d84 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by GitHub

3.x fix travis (#551)

* merged .travis.yml from master
parent 06b243b6
...@@ -4,3 +4,4 @@ ...@@ -4,3 +4,4 @@
/composer.lock /composer.lock
/vendor /vendor
/phar/solarium.phar /phar/solarium.phar
.idea
\ No newline at end of file
...@@ -6,25 +6,29 @@ php: ...@@ -6,25 +6,29 @@ php:
- 7.1 - 7.1
- 7.0 - 7.0
- 5.6 - 5.6
- 5.5
- 5.4
- 5.3
- hhvm - hhvm
- nightly - nightly
env: env:
- SYMFONY_VERSION=2.3.* - SYMFONY_VERSION=2.3.* SOLR_VERSION=6.6.2
- SYMFONY_VERSION=2.7.* - SYMFONY_VERSION=2.7.* SOLR_VERSION=6.6.2
- SYMFONY_VERSION=2.8.* - SYMFONY_VERSION=2.8.* SOLR_VERSION=6.6.2
- SYMFONY_VERSION=3.0.* # Does not work with php below 5.5 - SYMFONY_VERSION=3.0.* SOLR_VERSION=6.6.2
- SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.2
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
before_install:
- composer global require "hirak/prestissimo:^0.3"
- curl -O http://archive.apache.org/dist/lucene/solr/${SOLR_VERSION}/solr-${SOLR_VERSION}.tgz
- tar -xzf solr-${SOLR_VERSION}.tgz
before_script: before_script:
- bash -c "if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7.0' ] && [ $TRAVIS_PHP_VERSION != 'nightly' ]; then printf '\n\n\n\n' | pecl install pecl_http-1.7.6; fi" # - pecl install pecl_http
- composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION} - composer require --prefer-source --dev symfony/event-dispatcher:${SYMFONY_VERSION}
- solr-${SOLR_VERSION}/bin/solr start -e techproducts
script: vendor/bin/phpunit -c phpunit.xml.travis -v script: vendor/bin/phpunit -c phpunit.xml.travis -v
...@@ -33,12 +37,13 @@ after_success: ...@@ -33,12 +37,13 @@ after_success:
matrix: matrix:
exclude: exclude:
- php: 5.3 - php: 7.0
env: SYMFONY_VERSION=3.0.* env: SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.2
- php: 5.4 - php: 5.6
env: SYMFONY_VERSION=3.0.* env: SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.2
- php: hhvm
env: SYMFONY_VERSION=4.0.* SOLR_VERSION=6.6.2
allow_failures: allow_failures:
- php: 5.3
- php: nightly - php: nightly
sudo: false sudo: false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment