mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-29 21:14:03 +03:00
Upgrade docker-engine and docker-compose used by Travis CI
This commit is contained in:
parent
282ecea4d8
commit
a2aae521c6
10
.travis.yml
10
.travis.yml
|
@ -12,19 +12,23 @@ python: 3.5
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=py34
|
- TOX_ENV=py34
|
||||||
- TOX_ENV=py35
|
- TOX_ENV=py35
|
||||||
|
# https://www.ubuntuupdates.org/?type=dists&vals=ubuntu-precise
|
||||||
|
- DOCKER_ENGINE_VERSION=17.04.0~ce-0~ubuntu-precise
|
||||||
|
# https://github.com/docker/compose/releases/
|
||||||
|
- DOCKER_COMPOSE_VERSION=1.12.0
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" > /etc/apt/sources.list.d/docker.list'
|
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-precise main" > /etc/apt/sources.list.d/docker.list'
|
||||||
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
- sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-key update
|
- sudo apt-key update
|
||||||
- sudo apt-get --force-yes -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=1.11.1-0~precise
|
- sudo apt-get --force-yes -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=${DOCKER_ENGINE_VERSION}
|
||||||
- sudo rm /usr/local/bin/docker-compose
|
- sudo rm /usr/local/bin/docker-compose
|
||||||
- curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > 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
|
- chmod +x docker-compose
|
||||||
- sudo mv docker-compose /usr/local/bin
|
- sudo mv docker-compose /usr/local/bin
|
||||||
- docker-compose -v
|
|
||||||
- docker -v
|
- docker -v
|
||||||
|
- docker-compose -v
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox -e $TOX_ENV
|
- tox -e $TOX_ENV
|
||||||
|
|
Loading…
Reference in New Issue
Block a user