forked from ongr-io/ElasticsearchBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 979 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
28
29
30
31
32
33
34
35
36
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
- hhvm
env:
global:
- ES_VERSION="2.1.1"
- SYMFONY="~3.0"
matrix:
allow_failures:
- php: hhvm
include:
- php: 7.0
env: SYMFONY="2.7.*"
install:
- composer require --no-update symfony/symfony:${SYMFONY}
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch > /dev/null 2>&1 &
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 --ignore=vendor/,Tests/app/ ./
after_script:
- travis_retry php vendor/bin/coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/81e47479feba5ba8dc47
on_success: change
on_start: never