Skip to content

Commit

Permalink
Add an initial attempt at a Travis-CI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Sokolow authored and Stephan Sokolow committed Aug 29, 2017
1 parent f5a1c9e commit 385e3f7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 385e3f7

Please sign in to comment.