forked from docker-php/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (58 loc) · 2.29 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
68
language: php
sudo: required
services:
- docker
cache:
directories:
- $HOME/.composer/cache
php: 7.2
env:
global:
- TEST_COMMAND="composer test"
matrix:
- DOCKER_API_VERSION=1.36 DOCKER_VERSION=18.02.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.36 DOCKER_VERSION=18.01.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.35 DOCKER_VERSION=17.12.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.34 DOCKER_VERSION=17.11.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.33 DOCKER_VERSION=17.10.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.32 DOCKER_VERSION=17.09.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.31 DOCKER_VERSION=17.07.0~ce-0~ubuntu
- DOCKER_API_VERSION=1.30 DOCKER_VERSION=17.06.2~ce-0~ubuntu
- DOCKER_API_VERSION=1.29 DOCKER_VERSION=17.05.0~ce-0~ubuntu-trusty
- DOCKER_API_VERSION=1.28 DOCKER_VERSION=17.04.0~ce-0~ubuntu-trusty
- DOCKER_API_VERSION=1.27 DOCKER_VERSION=17.03.2~ce-0~ubuntu-trusty
- DOCKER_API_VERSION=1.26 DOCKER_VERSION=17.03.2~ce-0~ubuntu-trusty
- DOCKER_API_VERSION=1.25 DOCKER_VERSION=17.03.2~ce-0~ubuntu-trusty
matrix:
allow_failures:
- php: hhvm
fast_finish: true
include:
- php: 7.1
sudo: required
services:
- docker
env: DOCKER_API_VERSION=1.25 DOCKER_VERSION=17.03.2~ce-0~ubuntu-trusty COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
- php: 7.1
env: DOCKER_API_VERSION=1.36 DOCKER_VERSION=18.02.0~ce-0~ubuntu TEST_COMMAND="composer lint"
- php: 7.2
sudo: required
services:
- docker
env: DOCKER_API_VERSION=1.36 DOCKER_VERSION=18.02.0~ce-0~ubuntu
before_install:
- sudo apt-get update
- sudo apt-cache madison docker-ce
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y --force-yes docker-ce=${DOCKER_VERSION}
- travis_retry composer self-update
install:
- travis_retry composer install
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction
- travis_retry composer require docker-php/docker-php-api:4.${DOCKER_API_VERSION}.*
script:
- $TEST_COMMAND
after_success:
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
after_script:
- sudo cat /var/log/upstart/docker.log