diff --git a/.dockerignore b/.dockerignore index 27215f05..1083899c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,4 @@ CONTRIBUTING.md Changelog.md Makefile docker-compose.yml +.travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..6b051661 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +sudo: required + +services: + - docker + +env: + global: + - DOCKER_VERSION=1.10.1-0~trusty + - DOCKER_COMPOSE_VERSION=1.7.1 + +before_install: + # list docker-engine versions + - apt-cache madison docker-engine + + # upgrade docker-engine to specific version + - sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION} + + # reinstall docker-compose at specific version + - sudo rm /usr/local/bin/docker-compose + - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose + - chmod +x docker-compose + - sudo mv docker-compose /usr/local/bin + +script: + - docker-compose build + +notifications: + email: false