Skip to content

Commit 2205e99

Browse files
authored
Merge pull request #867 from ezimuel/fix/travis-with-docker
Fix integration tests using docker
2 parents 05cd40c + 2360fbf commit 2205e99

19 files changed

+181
-153
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Thumbs.db
2121
generator/*
2222

2323
# Elasticsearch related
24-
util/elasticsearch/
24+
util/elasticsearch
2525
util/cache/
2626
util/output
2727

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
language: php
22

3-
jdk:
4-
- oraclejdk8
5-
6-
addons:
7-
apt:
8-
packages:
9-
- oracle-java8-installer
3+
services:
4+
- docker
105

116
branches:
127
except:
@@ -43,11 +38,9 @@ matrix:
4338
env:
4439
global:
4540
- ES_TEST_HOST=http://localhost:9200
46-
- JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
4741

4842
before_install:
49-
- sudo update-java-alternatives -s java-8-oracle
50-
- ./travis/download_and_run_es.sh
43+
- ./travis/run_es_docker.sh
5144

5245
install:
5346
- composer install --prefer-dist
@@ -65,3 +58,6 @@ script:
6558

6659
after_script:
6760
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then php vendor/bin/coveralls; fi
61+
62+
notifications:
63+
email: true

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"cpliakas/git-wrapper": "~1.0",
2323
"doctrine/inflector": "^1.1",
2424
"mockery/mockery": "^1.2",
25-
"phpstan/phpstan-shim": "0.9.1",
25+
"phpstan/phpstan-shim": "^0.9",
2626
"phpunit/phpunit": "6.3.0",
2727
"squizlabs/php_codesniffer": "3.0.2",
2828
"symfony/finder": "^2.8",
@@ -52,8 +52,7 @@
5252
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests"
5353
],
5454
"phpstan": [
55-
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src.neon src --level 2 --no-progress",
56-
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-tests.neon tests --level 7 --no-progress"
55+
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src.neon src --level 2 --no-progress"
5756
]
5857
}
5958
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
beStrictAboutOutputDuringTests="true"
1010
>
1111
<php>
12-
<server name="ES_TEST_HOST" value=""/>
12+
<env name="ES_TEST_HOST" value=""/>
1313
</php>
1414
<testsuites>
1515
<testsuite name="Tests">

0 commit comments

Comments
 (0)