-
Notifications
You must be signed in to change notification settings - Fork 82
/
.travis.yml
34 lines (28 loc) · 942 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# The cnfig for travis CI
sudo: required
language: python
python:
- "2.7"
env:
global:
- DOCKER_VERSION=1.10.1-0~trusty
services:
- docker
before_install:
# list docker-engine versions
- sudo apt-cache madison docker-engine
# upgrade docker-engine to specific version
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y docker-engine=${DOCKER_VERSION}
# reinstall docker-compose at specific version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > docker-compose
- sudo chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- docker version
- docker-compose version
- ls
- pwd
- sudo service docker restart
- sudo docker-compose -f docker-compose-test.yml up
- sudo docker-compose -f docker-compose-test-rerun.yml up