Skip to content

Commit

Permalink
fixed travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Mantas Marcinkevicius committed Oct 3, 2019
1 parent 76fe7ed commit e01edb8
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
sudo: required
language: php
php:
- 7.0
- 7.1
- hhvm
- 7.2
- 7.3
env:
global:
- ES_VERSION="5.0" JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
matrix:
allow_failures:
- php: hhvm
- ES_VERSION=6.2.3 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
install:
# Container based PHP image ues PHP 5.6.5, once it will be upgraded sudo will be not necessary
- sudo apt-get install -y oracle-java8-set-default
- ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip")
- curl -L -o elasticsearch.zip $ES_URL
- unzip elasticsearch.zip
- ./elasticsearch-*/bin/elasticsearch -d
- wget ${ES_DOWNLOAD_URL}
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch -d
before_script:
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
- composer install --no-interaction --prefer-dist
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction
script:
- vendor/bin/phpunit --coverage-clover=coveralls.clover
- vendor/bin/phpcs -p --standard=PSR2 --extensions=php --ignore=vendor/,Tests/app/ ./
after_script:
- travis_retry php vendor/bin/coveralls
- travis_retry php vendor/bin/coveralls

0 comments on commit e01edb8

Please sign in to comment.