language: python
python:
- "2.7"
dist: trusty
sudo: false
addons:
  apt:
    packages:
    - libboost-all-dev
    - libcairomm-1.0-dev
install:
- pip install --upgrade pip setuptools coverage sphinx coveralls
- pip install --upgrade matplotlib pycairo
# Temporary workaround for https://travis-ci.org/jacquev6/DrawTurksHead/builds/523061857#L1358
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ]; then pip install urllib3==1.24.2; fi
script:
- coverage run --include=DrawTurksHead*,build/lib/DrawTurksHead* setup.py test
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ]; then python setup.py build_sphinx --builder=doctest; fi
after_success:
- coveralls
deploy:
  provider: pypi
  user: jacquev6
  password:
    secure: IxZkM+jLb2kdI836H4h5dAXFu33D7J1FUuJw/Os752XqH0wBK5Xkk/LFz383Nw6auz6ppwjgmnvKdogH+KZwZ/9E5UaNb3cA0veJJDxwdl1c3iZP8z5i0Bk+KsnqJgaUnNuEIWO46Y9LB6VzazhOwE3Ftc+5kzrnEXUU7285iE8=
  skip_upload_docs: true
  on:
    tags: true
    repo: jacquev6/DrawTurksHead
    python: 2.7

language: python
python:
- "2.7"
dist: trusty
sudo: false
addons:
  apt:
    packages:
    - libboost-all-dev
    - libcairomm-1.0-dev
install:
- pip install --upgrade pip setuptools coverage sphinx coveralls
- pip install --upgrade matplotlib pycairo
script:
- coverage run --include=DrawTurksHead*,build/lib/DrawTurksHead* setup.py test
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ]; then python setup.py build_sphinx --builder=doctest; fi
after_success:
- coveralls
deploy:
  provider: pypi
  user: jacquev6
  password:
    secure: IxZkM+jLb2kdI836H4h5dAXFu33D7J1FUuJw/Os752XqH0wBK5Xkk/LFz383Nw6auz6ppwjgmnvKdogH+KZwZ/9E5UaNb3cA0veJJDxwdl1c3iZP8z5i0Bk+KsnqJgaUnNuEIWO46Y9LB6VzazhOwE3Ftc+5kzrnEXUU7285iE8=
  skip_upload_docs: true
  on:
    tags: true
    repo: jacquev6/DrawTurksHead
    python: 2.7

Revert "(Try to) fix Travis CI"
Revert "(Try to) fix Travis CI"

This reverts commit 240f643842e535610f304d70554b73f06478bc96.
