Skip to content

Commit 9b7dd3a

Browse files
einorlersaimaz
authored andcommitted
updated travis file (#98)
1 parent 8804aa4 commit 9b7dd3a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.travis.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
sudo: false
1+
sudo: true
22
language: php
33
php:
4-
- 5.5
54
- 5.6
65
- 7.0
76
- hhvm
87
env:
98
global:
10-
- ES_VERSION="2.1.1"
9+
- JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
10+
- ES_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.zip"
1111
matrix:
1212
allow_failures:
1313
- php: hhvm
14+
addons:
15+
apt:
16+
packages:
17+
- oracle-java8-installer
1418
install:
15-
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
16-
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
17-
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch > /dev/null 2>&1 &
19+
- sudo apt-get install -y oracle-java8-set-default
20+
- curl -L -o elasticsearch.zip $ES_URL
21+
- unzip elasticsearch.zip
22+
- ./elasticsearch-*/bin/elasticsearch -d
1823
before_script:
1924
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
2025
- composer install --no-interaction --prefer-dist

0 commit comments

Comments
 (0)