sudo: required

services:
  - docker

env:
  - DOCKER_TAG=$TRAVIS_TAG

language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
install:
  - pip install -r requirements.txt
  - pip install pep8
script:
  - ./scripts/cibuild.sh
after_success:
  - if [ ! -z "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    ./scripts/docker-build.sh;
    fi
