From ba8df9c58b4129a1fd017f9c128ceda6f287b1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@nfq.com> Date: Thu, 15 Mar 2018 14:41:35 +0100 Subject: [PATCH] update travis configuration --- .travis.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 54d8539..e93f355 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,23 @@ -sudo: true +sudo: false language: php php: - 5.6 - 7.0 - 7.1 - - hhvm + - 7.2 env: global: - - JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre" - - ELASRICSEARCH_HOST="127.0.0.1:9200" - - ES_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.zip" -matrix: - allow_failures: - - php: hhvm + - ES_VERSION=5.6.8 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 - - curl -L -o elasticsearch.zip $ES_URL - - unzip elasticsearch.zip - - ./elasticsearch-*/bin/elasticsearch -d -Escript.inline=true -Escript.stored=true + - 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 script: + - wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200 - vendor/bin/phpunit --coverage-clover=coverage.clover - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/ ./ after_script: - - travis_retry php vendor/bin/coveralls + - travis_retry php vendor/bin/coveralls \ No newline at end of file -- GitLab