Skip to content

Commit

Permalink
Added Travis-CI config (amundsen-io#1)
Browse files Browse the repository at this point in the history
Added Travis-CI configuration and mypy checks
  • Loading branch information
Daniel authored Feb 13, 2019
1 parent 7e271b8 commit 9c7d9e0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dist: xenial
language: python
python: 3.7
install:
- pip3 install -r requirements.txt
- python3 setup.py install
script:
- make test
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ test_unit:
lint:
python3 -m flake8

.PHONY: mypy
mypy:
mypy --ignore-missing-imports --follow-imports=skip --strict-optional --warn-no-return metadata_service

.PHONY: test
test: test_unit lint
test: test_unit lint mypy
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ pytest-cov==2.5.1
# Upstream url: https://mock.readthedocs.io/en/latest/
mock==2.0.0

# Mypy is an optional static type checker for Python.
# License: MIT
# Upstream url: https://github.com/python/mypy
mypy==0.660

# Thin-wrapper around the mock package for easier use with py.test.
# License: MIT
# Upstream url: https://pypi.python.org/pypi/pytest-mock
Expand Down

0 comments on commit 9c7d9e0

Please sign in to comment.