language: python
sudo: false
matrix:
  include:
    - os: linux
      python: 3.5
      env: TOXENV=py35
    - os: linux
      python: 3.6
      env: TOXENV=py36
    - os: osx
      language: generic
      python: "3.6"
      before_install:
        - brew update
        - brew install python3
        - python3 -m venv venv
        - source venv/bin/activate
      env: TOXENV=py36
    # TODO: Meta for flake8

before_install:
  - pip install coveralls

install: pip install tox

script: tox -vv

after_success:
  - tox -e coverage-report
  - coveralls

cache: pip

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log

deploy:
  skip_cleanup: true
  provider: pypi
  user: pymola.wheelbuilder
  password:
    secure: "GZaxb109ZfDBjhFfpWnPxsfNeRMjq226MyNUB7K3ferXpR3+MBx2pOfzuYf+VF8ypOeZ9DsCwVn2x+33eJEOoXUAS4HaCz1EYEgHvEsAGf6nZI9MlGP9AWgKTqvQBj6m/VrizuaXU9gs4sAWm6udH+nqzstmrp6XVZknNfADRRA="
  distributions: "sdist bdist_wheel"
  on:
    tags: true
language: python
sudo: false
matrix:
  include:
    - os: linux
      python: 3.5
      env: TOXENV=py35
    - os: linux
      python: 3.6
      env: TOXENV=py36
    - os: osx
      language: generic
      python: "3.6"
      before_install:
        - brew update
        - brew upgrade python
        - python -m venv venv
        - source venv/bin/activate
      env: TOXENV=py36
    # TODO: Meta for flake8

before_install:
  - pip install coveralls

install: pip install tox

script: tox -vv

after_success:
  - tox -e coverage-report
  - coveralls

cache: pip

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log

deploy:
  skip_cleanup: true
  provider: pypi
  user: pymola.wheelbuilder
  password:
    secure: "GZaxb109ZfDBjhFfpWnPxsfNeRMjq226MyNUB7K3ferXpR3+MBx2pOfzuYf+VF8ypOeZ9DsCwVn2x+33eJEOoXUAS4HaCz1EYEgHvEsAGf6nZI9MlGP9AWgKTqvQBj6m/VrizuaXU9gs4sAWm6udH+nqzstmrp6XVZknNfADRRA="
  distributions: "sdist bdist_wheel"
  on:
    tags: true
Fix TravisCI tests on MacOS
Fix TravisCI tests on MacOS
