Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
#253 Test Travis build with latest Docker and --cached-from
Browse files Browse the repository at this point in the history
- remove customisation to install docker-engine
  version 1.9.1 in place of the Docker provided
  automatically by Travis
- add `--cache-from` directive to docker build
  stage to take advantage of image caching.
  • Loading branch information
jmurty committed Jun 22, 2017
1 parent b3e7965 commit 0c74b1d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ language: python
services:
- docker

install:
# Use Docker Engine 1.9.x for build cache support. See: https://github.com/docker/docker/issues/20380#issuecomment-212388961
- sudo apt-get -o Dpkg::Options::="--force-confnew" -q -y --force-yes install docker-engine=1.9.1-0~trusty

before_script:
- docker --version
- docker-compose --version
- docker-compose -f docker-compose.travis.yml config
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker pull "interaction/icekit:$TAG" || true
- docker build --pull -t "interaction/icekit:$TAG" .
- docker build --pull --cache-from "interaction/icekit:$TAG" -t "interaction/icekit:$TAG" .

script:
- docker-compose -f docker-compose.travis.yml run --rm django
Expand Down

0 comments on commit 0c74b1d

Please sign in to comment.