update docker and docker-compose in travis
---
+env:
+ - DOCKER_COMPOSE_VERSION=1.23.2
+
language: python
cache: pip
@@ -11,10 +14,20 @@ services:
- docker
before_install:
- - docker-compose -f docker-compose.yml -f docker-compose.travis.yml up --build -d
+ # Update docker
+ - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
+ - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
+ - sudo apt-get update
+ - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
+ # Update docker-compose
+ - 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
install:
- pip install coveralls
+ - docker-compose -f docker-compose.yml -f docker-compose.travis.yml up --build -d
# Initalize the app and test it.
script:
