travis: restore tox-travis setup
-# Travis CI configuration ~ travis-ci.org
-language: generic
dist: bionic
-sudo: required
+sudo: false
+language: python
+python:
+ - "2.7"
+# - "3.4" # tox fails in 3.4, jobs timeout
+ - "3.5"
+ - "3.6"
+ - &latest_py3 "3.7"
+install: pip install tox-travis
+script: make tox
-before_install:
- - sudo apt update
-
-install:
- - sudo apt install -y make python-dev python3-dev tox
-
-script:
- - make tox flags="-- --verbose"
+jobs:
+ fast_finish: true
+ include:
+ - stage: deploy
+ if: tag IS present
+ python: *latest_py3
+ install: skip
+ script: skip
+ deploy:
+ provider: pypi
+ on:
+ tags: true
+ all_branches: true
+ user: jaraco
+ password:
+ secure: LZwSEE+UMTtwPsRF7Bdfz9pPa6bGnvSqIUEuKxJ4eqwguP6HhsVGRkg6pj6WVyz4+zqOwgBtF8nu6Ul1I9MlOYjhOeI/1BXHSW4AuuFc8GFNEI0O/22dpbaXKl3Va2iVbb0np5iVw8tMlnJDLe9zjEeuPgk/y0j9+x8x81iw0nM=
+ distributions: dists
+ skip_cleanup: true
