From 4aebed3b6a1117931fc13b5094aaeef633823337 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 4 Mar 2019 18:58:26 +0000 Subject: [PATCH] Initial .travis file Any project needs a CI. --- .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9fa1166 --- /dev/null +++ b/.travis.yml @@ -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