2015-11-09 02:38:52 +03:00
|
|
|
# Config file for automatic testing at travis-ci.org
|
|
|
|
|
2016-01-18 13:56:48 +03:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2015-11-09 02:38:52 +03:00
|
|
|
language: python
|
2016-03-03 07:43:17 +03:00
|
|
|
|
2015-11-09 02:38:52 +03:00
|
|
|
python: 3.5
|
2016-03-03 07:43:17 +03:00
|
|
|
|
2015-11-09 02:38:52 +03:00
|
|
|
env:
|
2017-05-02 15:06:21 +03:00
|
|
|
- TOX_ENV=py34
|
|
|
|
- TOX_ENV=py35
|
2017-05-02 15:08:36 +03:00
|
|
|
- DOCKER_ENGINE_VERSION=17.04.0~ce-0~ubuntu-precise # https://www.ubuntuupdates.org/?type=dists&vals=ubuntu-precise
|
|
|
|
- DOCKER_COMPOSE_VERSION=1.12.0 # https://github.com/docker/compose/releases/
|
2015-11-09 02:38:52 +03:00
|
|
|
|
2016-03-03 07:43:17 +03:00
|
|
|
before_install:
|
2016-08-11 12:51:53 +03:00
|
|
|
- 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
|
2016-03-03 18:20:20 +03:00
|
|
|
- sudo apt-get update
|
2016-08-11 12:51:53 +03:00
|
|
|
- sudo apt-key update
|
2017-05-02 15:06:21 +03:00
|
|
|
- sudo apt-get --force-yes -qqy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine=${DOCKER_ENGINE_VERSION}
|
2016-03-03 07:43:17 +03:00
|
|
|
- sudo rm /usr/local/bin/docker-compose
|
2017-05-02 15:06:21 +03:00
|
|
|
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
2016-03-03 07:43:17 +03:00
|
|
|
- chmod +x docker-compose
|
|
|
|
- sudo mv docker-compose /usr/local/bin
|
2016-08-11 12:51:53 +03:00
|
|
|
- docker -v
|
2017-05-02 15:06:21 +03:00
|
|
|
- docker-compose -v
|
2016-03-03 07:43:17 +03:00
|
|
|
|
2016-01-18 13:56:48 +03:00
|
|
|
script:
|
|
|
|
- tox -e $TOX_ENV
|
|
|
|
- sh tests/test_docker.sh
|
2015-03-27 17:04:11 +03:00
|
|
|
|
2015-11-09 02:38:52 +03:00
|
|
|
install:
|
|
|
|
- pip install tox
|
2014-12-18 18:32:41 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
2015-04-20 15:19:12 +03:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|