os: osx
addons:
  hosts:
  - authomatic.test
  - authomatic.com
  - authomatic.org
install:
- sudo pip install tox
script:
- sudo tox -e py3 -- -vvx --tb=no
after_failure:
- tail -n 500 tests/functional_tests/*.log
- tail -n 500 tests/*.log
- tail -n 500 flask.log
before_install:
- openssl aes-256-cbc -K $encrypted_dbe8ae205660_key -iv $encrypted_dbe8ae205660_iv
  -in ./tests/functional_tests/config.py.enc -out ./tests/functional_tests/config.py
  -d
- brew update
- brew cask install google-chrome
deploy:
  provider: pypi
  user: "__token__"
  # password: is defined via encrypted env var $PYPI_PASSWORD (stored on travis server)
  skip_cleanup: true
  on:
    tags: true
    branch: prepare-0.2.0

addons:
  chrome: stable
  hosts:
  - authomatic.test
  - authomatic.com
  - authomatic.org
install:
- sudo pip install tox
script:
- sudo tox -e py3 -- -vvx --tb=no
after_failure:
- tail -n 500 tests/functional_tests/*.log
- tail -n 500 tests/*.log
- tail -n 500 flask.log
before_install:
- openssl aes-256-cbc -K $encrypted_dbe8ae205660_key -iv $encrypted_dbe8ae205660_iv
  -in ./tests/functional_tests/config.py.enc -out ./tests/functional_tests/config.py
  -d
deploy:
  provider: pypi
  user: "__token__"
  # password: is defined via encrypted env var $PYPI_PASSWORD (stored on travis server)
  skip_cleanup: true
  on:
    tags: true
    branch: prepare-0.2.0

Switch to Linux (MacOS can't do pypi deploys).
Switch to Linux (MacOS can't do pypi deploys).
