2018-10-23 04:00:52 +03:00
|
|
|
language: python
|
2019-04-09 00:45:42 +03:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2018-09-07 22:41:58 +03:00
|
|
|
sudo: required
|
2017-07-05 23:34:32 +03:00
|
|
|
services:
|
2018-09-07 22:41:58 +03:00
|
|
|
- docker
|
|
|
|
branches:
|
|
|
|
# Restrict push builds to only master
|
|
|
|
only:
|
|
|
|
- master
|
2018-10-30 23:53:07 +03:00
|
|
|
env:
|
|
|
|
- DOCKER_COMPOSE_VERSION=1.22.0
|
2018-09-07 22:41:58 +03:00
|
|
|
before_install:
|
|
|
|
# Fail immediately on any error
|
|
|
|
- set -e
|
2018-10-30 23:53:07 +03:00
|
|
|
# See https://docs.travis-ci.com/user/docker/
|
|
|
|
- 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
|
2017-07-05 23:34:32 +03:00
|
|
|
install:
|
2018-09-07 22:41:58 +03:00
|
|
|
# Build containers
|
2018-10-30 23:40:13 +03:00
|
|
|
# Use BUILD_MODE=pull if you prefer pulling existing images
|
2018-10-17 01:00:09 +03:00
|
|
|
- make build-tests
|
2017-07-05 23:34:32 +03:00
|
|
|
script:
|
2018-10-30 23:40:13 +03:00
|
|
|
- make tests
|