-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
65 lines (56 loc) · 2.84 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
notifications:
email: false
slack:
# Slack integration.
# Generated via `travis encrypt -r ClusterHQ/dvol <slack configuration>'
# See Travis in the Slack App directory for details.
secure: "IuMdO5YgVlYdq12I8PbrnjgQo2mpW53LoABUHoHFnaczpXmOD0cbgSX4YRRqGPTkBj3iMqOYtGbOtcyIRwLB9SVbr2xeDpvRYC8auX/jGMbQmaQMhG4kZOpVA9FKt+XcJFj6lsihT50tx2uJ4zn85KjOy1ZJQjgpka+vsKJbvGAg65AvCovlB/l1fyd8eaRZxDXyvapD7I39R7ij22r/QfnJ0t2JT0PKS0SR+gPemnjMhGkW0n3dyoOOkhqVAEyevt6f+s8NNnSioCuJy6X9R6eIXOeJYXHMvigxpZ7nEnrWik3IgQ9+rqJjjqzb9paxU+1+aQP0gb+r1M+hfbGyWQp1k6KCNb1IljCtjNccWxlajkooLJS1haRKiyV96U+DiDybpVIbEdtNMBQrRN+6lCbU8OduHxluH5WnAdZEUGz6pQLt7fxCazKzib/vxnUlSgvRnKzweYd21zj3c4w6aPLdCaI2eQM036Zwt/9ltWbk5I8sjAWfCgvWqxD+MaOT2vAog8T7B8WoyRjhbChtMNNHtw64a9W402WADrQO1jTU4tGsKwDbjXb4j2GtvhKahrGGigFYBfPLgOi8mzzwaJh7uBo/S8evAG/K/abc2hhhLBGWlSiA252hbNcgjGk8QuwKFhaA1DenAXZTf8GcwYC+ZlmKOczIujamQKfAvjM="
sudo: required
language: go
# Build against Go 1.5 in travis environment because docker version is < 1.9
# where docker doesn't send valid host headers. Building our web server (volume
# plugin) against go 1.6 causes it to be strict about accepting Host headers,
# causing incompatibility with older versions of docker that we care about.
go: 1.5
env:
global:
- GO15VENDOREXPERIMENT=1
matrix:
# Each of the following results in a separate build run
# https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix
# unit tests only
- "RUN_TESTS=test"
# acceptance tests
- "DOCKER_VERSION=1.8.3 RUN_TESTS=test-dvol-python-acceptance"
- "DOCKER_VERSION=1.8.3 RUN_TESTS=test-dvol-golang-acceptance"
- "DOCKER_VERSION=1.9.1 RUN_TESTS=test-dvol-python-acceptance"
- "DOCKER_VERSION=1.9.1 RUN_TESTS=test-dvol-golang-acceptance"
- "DOCKER_VERSION=1.10.2 RUN_TESTS=test-dvol-python-acceptance"
- "DOCKER_VERSION=1.10.2 RUN_TESTS=test-dvol-golang-acceptance"
- "DOCKER_VERSION=experimental RUN_TESTS=test-dvol-python-acceptance"
- "DOCKER_VERSION=experimental RUN_TESTS=test-dvol-golang-acceptance"
matrix:
allow_failures:
- env: "DOCKER_VERSION=experimental RUN_TESTS=test-dvol-python-acceptance"
- env: "DOCKER_VERSION=experimental RUN_TESTS=test-dvol-golang-acceptance"
fast_finish: true
services:
- docker
cache:
directories:
# Cache the pip downloads to try to speed up installation. There might be
# a Travis CI-native way to do pip caching but I don't quite understand it.
- "$HOME/.cache/pip"
before_install:
# Get packaging tools that can use and cache wheels.
- "pip install --user `whoami` --upgrade pip>=7 setuptools>=11.3"
- "pip install --user `whoami` wheel"
# 'upgrade' docker-engine to specific version
- scripts/build-travis-install-docker.sh ${DOCKER_VERSION}
install:
- "pip install --user `whoami` ."
- "make bootstrap"
script:
- "make verify"
- "make build"
- "make $RUN_TESTS"