Skip to content

Commit 103bd48

Browse files
author
Simonas Šerlinskas
committed
support php 5.6
1 parent 6911691 commit 103bd48

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
sudo: required
22
language: php
33
php:
4+
- 5.6
45
- 7.0
56
- hhvm
67
env:
78
global:
8-
- ES_VERSION="5.0.0"
9-
- SYMFONY="~3.0"
9+
- ES_VERSION="5.0" JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
1010
matrix:
1111
allow_failures:
1212
- php: hhvm
13-
include:
14-
- php: 7.0
15-
env: SYMFONY="2.8.*"
16-
addons:
17-
apt:
18-
packages:
19-
- oracle-java8-installer
2013
install:
14+
# Container based PHP image ues PHP 5.6.5, once it will be upgraded sudo will be not necessary
2115
- sudo apt-get install -y oracle-java8-set-default
22-
- composer require --no-update symfony/symfony:${SYMFONY}
23-
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.deb
24-
- sudo dpkg -i elasticsearch-${ES_VERSION}.deb
25-
- sudo service elasticsearch restart
16+
- ES_URL=$(curl -sS "https://esvm-props.kibana.rocks/builds" | jq -r ".branches[\"$ES_VERSION\"].zip")
17+
- curl -L -o elasticsearch.zip $ES_URL
18+
- unzip elasticsearch.zip
19+
- ./elasticsearch-*/bin/elasticsearch -d
2620
before_script:
2721
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
2822
- composer install --no-interaction --prefer-dist

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=7.0",
14+
"php": "^5.6.6|^7.0",
1515
"symfony/symfony": "~2.8|~3.0",
1616
"ongr/elasticsearch-bundle": "~2.0"
1717
},

0 commit comments

Comments
 (0)