forked from ongr-io/FilterManagerBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 903 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
sudo: required
language: php
php:
- 7.0
- 7.1
- hhvm
env:
global:
- ES_VERSION="5.0" JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
matrix:
allow_failures:
- php: hhvm
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
before_script:
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
- composer install --no-interaction --prefer-dist
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