forked from spotify/docker-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (42 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
sudo: required
dist: trusty
notifications:
email: false
services:
- docker
language: java
jdk:
- openjdk7
env:
global:
- SONATYPE_USERNAME=mattbrownspotify
- secure: "CTYWMDSX4LOz2TiYBSqC+7klvafj0wvwcbpyL3TJueWmgKzJwysRqSHxw9JR2rfe8ysSxGFFiRO9HEyJ4o6zTF6kIy9tYsPxvSJ8c9wIEdTbUtGMuWlrhKchuMmdDaWt07/0N2llSB4h3fv53UGglSM+5FJu4e5DxvxUmIx/Zn4="
matrix:
- DOCKER_VERSION=1.12.6
- DOCKER_VERSION=1.13.1
- DOCKER_VERSION=17.03.1~ce
- DOCKER_VERSION=17.06.0~ce DOCKER_CE=1
- DOCKER_VERSION=17.09.0~ce DOCKER_CE=1 UPLOAD_SONATYPE=1
before_install:
# check what version of docker is installed beforehand
- dpkg -l | grep docker
# install the version of docker in the DOCKER_VERSION env var
- ./.travis.sh install_docker
# uncomment to double-check that the version/config is correct
# - ./.travis.sh dump_docker_config
- docker version
- docker info
script: mvn clean -Dsurefire.rerunFailingTestsCount=1 test
after_success:
# test coverage reporting
- bash <(curl -s https://codecov.io/bash)
# deploy snapshots to Maven central, but only from master branch
- "[[ $TRAVIS_BRANCH == \"master\" && $UPLOAD_SONATYPE == \"1\" ]] && mvn --settings sonatype-settings.xml -DskipTests -B deploy"
# To troubleshoot a failing build, you can uncomment this block to dump the
# docker logs in case they are needed for troubleshooting failures. We don't do
# this on every single build as the logs are verbose and noisy.
# after_script:
# - sudo cat /var/log/upstart/docker.log
branches:
only:
- master