forked from elastic/elasticsearch-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (43 loc) · 1.11 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
language: php
os: linux
dist: bionic
cache:
directories:
- $HOME/.composer/cache
services:
- docker
branches:
except:
- 0.4
jobs:
fast_finish: true
include:
- php: 7.1
env: TEST_SUITE="oss"
- php: 7.2
env: TEST_SUITE="oss"
- php: 7.3
env: TEST_SUITE="oss"
- php: 7.4
env: TEST_SUITE="oss"
env:
global:
- STACK_VERSION="8.0.0-SNAPSHOT"
before_install:
- ./travis/run_es_docker.sh
install:
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN} >/dev/null 2>&1; fi;
- composer install --prefer-dist --no-interaction >/dev/null 2>&1
before_script:
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
- php util/RestSpecRunner.php
- php util/EnsureClusterAlive.php
script:
- composer run-script phpcs
- composer run-script phpstan
- vendor/bin/phpunit $PHPUNIT_FLAGS
- vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS
after_script:
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then php vendor/bin/coveralls; fi
notifications:
email: true