# ref: https://docs.travis-ci.com/user/languages/python
language: python
sudo: true
services:
  - docker
env:
  - TOXENV=py35
  - TOXENV=py34
  - TOXENV=py27
  - TOXENV=py27-functional
  - TOXENV=py35-functional
  - TOXENV=update-pep8
  - TOXENV=docs
  - TOXENV=coverage,codecov

before_install:
  - sudo add-apt-repository ppa:0k53d-karl-f830m/hitch -y
  - sudo apt-get -qq update
  - sudo apt-get install hitch

install:
  - pip install tox
  - hitch --frontend=[*]:8443 --backend=[localhost]:8080 --daemon $TRAVIS_BUILD_DIR/scripts/example.pem

script:
  - tox

# ref: https://docs.travis-ci.com/user/languages/python
language: python
sudo: true
services:
  - docker
env:
  - TOXENV=py35
  - TOXENV=py34
  - TOXENV=py27
  - TOXENV=py27-functional
  - TOXENV=py35-functional
  - TOXENV=update-pep8
  - TOXENV=docs
  - TOXENV=coverage,codecov

# We use hitch (https://hitch-tls.org/) to setup TLS proxy from 8443 to 8080. while hitch is
# in the ubuntu xenial main repos, it's not available by default on trusty. So we use the 
# ppa from here : https://launchpad.net/~0k53d-karl-f830m/+archive/ubuntu/hitch
before_install:
  - sudo add-apt-repository ppa:0k53d-karl-f830m/hitch -y
  - sudo apt-get -qq update
  - sudo apt-get install hitch

install:
  - pip install tox
  - hitch --frontend=[*]:8443 --backend=[localhost]:8080 --daemon $TRAVIS_BUILD_DIR/scripts/example.pem

script:
  - tox

Add comment about hitch ppa
Add comment about hitch ppa