2017-01-07 19:57:19 +00:00
|
|
|
dist: trusty
|
2016-04-04 23:01:47 +00:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2016-12-05 14:21:39 +00:00
|
|
|
- DOCKER_VERSION=1.12.3-0~trusty
|
2016-04-04 23:01:47 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
# list docker-engine versions
|
|
|
|
- apt-cache madison docker-engine
|
|
|
|
# upgrade docker-engine to specific version
|
2016-12-05 14:33:44 +00:00
|
|
|
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y --force-yes docker-engine=${DOCKER_VERSION}
|
2016-04-04 23:01:47 +00:00
|
|
|
- docker version
|
|
|
|
- docker info
|
2016-12-09 23:53:23 +00:00
|
|
|
# install bats
|
2016-04-04 23:01:47 +00:00
|
|
|
- sudo add-apt-repository ppa:duggan/bats --yes
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -qq bats
|
2016-12-09 23:53:23 +00:00
|
|
|
# prepare docker images
|
2016-04-04 23:01:47 +00:00
|
|
|
- make update-dependencies
|
|
|
|
|
2017-01-07 19:57:19 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: TEST_ID=test-debian
|
|
|
|
- env: TEST_ID=test-alpine
|
2016-12-09 23:53:23 +00:00
|
|
|
- env: TEST_ID=test2-debian
|
|
|
|
- env: TEST_ID=test2-alpine
|
|
|
|
allow_failures:
|
|
|
|
- env: TEST_ID=test2-debian
|
|
|
|
- env: TEST_ID=test2-alpine
|
2017-01-07 19:57:19 +00:00
|
|
|
|
2016-04-04 23:01:47 +00:00
|
|
|
script:
|
2017-01-07 19:57:19 +00:00
|
|
|
- make $TEST_ID
|