Skip to content

Instantly share code, notes, and snippets.

@flavienbwk
Created October 31, 2019 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flavienbwk/9e73404f5816f68bc0bcf2f97c2ea5d2 to your computer and use it in GitHub Desktop.
Save flavienbwk/9e73404f5816f68bc0bcf2f97c2ea5d2 to your computer and use it in GitHub Desktop.
Travis-CI example for docker-compose
sudo: required
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.23.2
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
before_script:
- docker-compose up -d --build
script:
- docker-compose up <your-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment