language: minimal

env:
  matrix:
    - DOCKER_PYTHON_VERSION=3.5
    - DOCKER_PYTHON_VERSION=3.6

before_script:
  - export PYTHON_VERSION=${DOCKER_PYTHON_VERSION}
  - export BUILD_TAG=travis-${TRAVIS_BUILD_NUMBER}

script:
  - docker-compose build

language: minimal

env:
  matrix:
    - DOCKER_PYTHON_VERSION=3.5
    - DOCKER_PYTHON_VERSION=3.6

before_script:
  - export PYTHON_VERSION=${DOCKER_PYTHON_VERSION}
  - export BUILD_TAG="${TRAVIS_TAG:-travis${TRAVIS_BUILD_NUMBER}}"

script:
  - docker-compose build

before_deploy:
  - echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin

deploy:
  - provider: script
    script: docker-compose push
    on:
      repo: c-w/gutenberg-http
      tags: true
      condition: ${DOCKER_PYTHON_VERSION} = 3.6

Add release to Docker Hub
Add release to Docker Hub
