From 385e3f70ee16d8457264c835cbd4d5d1aa8c31dc Mon Sep 17 00:00:00 2001 From: Stephan Sokolow Date: Tue, 29 Aug 2017 18:08:02 -0400 Subject: [PATCH] Add an initial attempt at a Travis-CI config. --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c8613d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +dist: trusty +sudo: false +cache: pip +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + - "pypy" + - "pypy3" +install: + - pip install coveralls + - if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip3 install mypy; fi +script: + - py.test --cov-branch --cov=. --cov-report=term-missing + - if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then mypy --py2 --strict-optional --ignore-missing-imports ./*.py; fi + - if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then mypy --strict-optional --ignore-missing-imports ./*.py; fi +after_success: coveralls