forked from kylerberry/elasticsearch-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (52 loc) · 1.52 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: php
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
branches:
except:
- 0.4
sudo: true
matrix:
fast_finish: true
include:
- php: 5.6
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
- php: 5.6
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
- php: 7.0
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
- php: 7.0
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
- php: 7.1
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
- php: 7.1
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
- php: 7.2
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
- php: 7.2
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
- php: 7.3
env: ES_VERSION="5.0" TEST_BUILD_REF="origin/5.0"
- php: 7.3
env: ES_VERSION="5.5" TEST_BUILD_REF="origin/5.5"
env:
global:
- ES_TEST_HOST=http://localhost:9200
- JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre"
before_install:
- sudo update-java-alternatives -s java-8-oracle
- ./travis/download_and_run_es.sh
install:
- composer install --prefer-dist
before_script:
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
- php util/RestSpecRunner.php
- php util/EnsureClusterAlive.php
script:
- vendor/bin/phpunit $PHPUNIT_FLAGS
- vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS
after_script:
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then php vendor/bin/coveralls; fi