From 09f1cf159173caed15ed7cdca34ba0f2fd33005a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 23 Jul 2020 21:53:34 -0400 Subject: [PATCH] Testing out a travis 7. Trying to cache the docker images. --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index db599e934..955932b74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,13 +14,19 @@ branches: env: - DOCKER_COMPOSE_VERSION=1.25.5 +cache: + directories: + - docker_images before_install: - 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 + - docker load -i docker_images/images.tar || true - cd docker/travis +before_cache: + - docker save -o docker_images/images.tar $(docker images -a -q) # install: # - docker build -t hnakamur/example . script: