Skip to content

Instantly share code, notes, and snippets.

@burdandrei
Last active December 21, 2015 15:01
Show Gist options
  • Save burdandrei/3345eb5edcf642d7525b to your computer and use it in GitHub Desktop.
Save burdandrei/3345eb5edcf642d7525b to your computer and use it in GitHub Desktop.
Template for travis.yml with docker cache between the builds
sudo: required
dist: trusty
services:
- docker
cache:
- directories:
- /var/tmp/docker
before_install:
- echo 'DOCKER_OPTS="-g /var/tmp/docker/"' | sudo tee -a /etc/default/docker
- sudo service docker restart
install:
# docker build commands
- sudo chmod -R 775 /var/tmp/docker
script:
# docker run tests
after_success:
# docker push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment