Skip to content

Commit

Permalink
Initial .travis file
Browse files Browse the repository at this point in the history
Any project needs a CI.
  • Loading branch information
ssbarnea committed Mar 4, 2019
1 parent 69fa141 commit 4aebed3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
language: python
branches:
only:
- master
- /v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$/

cache:
- pip
- directories:
- $HOME/.cache
os:
- linux
before_install:
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv wheel ; else python -m pip install tox tox-pyenv wheel twine; fi
jobs:
include:
- script:
# package building added here purely to fail-fast if is broken
- python setup.py sdist bdist_wheel
- twine check dist/*.*
- python -m tox
env: TOXENV=py27-unit
python: "2.7"
- script:
- python -m tox
env: TOXENV=py36-unit
python: "3.6"
- script:
- python -m tox
env: TOXENV=py27-lint
python: "2.7"
- script:
- python -m tox
env: TOXENV=py36-lint
python: "py3.6"
- script:
- python -m tox
env: TOXENV=doc
python: "3.6"
- script: python -m pip install -q tox-travis && python -m tox
python: "3.7"
env: TOXENV=py37-unit PYTHON='3.7'
dist: xenial
sudo: required
env:
global:
- PIP_DISABLE_PIP_VERSION_CHECK=1

0 comments on commit 4aebed3

Please sign in to comment.