Unverified Commit 3e239e59 authored by Daniel's avatar Daniel Committed by GitHub

Added Travis-CI configuration file (#2)

* Added travis configuration file

* Added .PHONY annotations to Makefile
Removed 'mypy' and commented 'npm run test' in travis.yml

* Added 'mypy' to Makefile
parent 2f70e55d
matrix:
include:
- language: python
python:
- "3.6"
install:
- pip3 install -r requirements3.txt
script:
- make test
- language: node_js
node_js:
- "8"
before_install:
- cd amundsen_application/static
install:
- npm install
script:
- npm run build
# TODO - replace build with `tsc` and 'lint`
# - npm run tsc
# - npm run lint
# TODO - Fix and enable 'test'
# - npm run test
.PHONY: clean
clean:
find . -name \*.pyc -delete
find . -name __pycache__ -delete
rm -rf dist/
.PHONY: test_unit
test_unit:
python3 -bb -m pytest tests
.PHONY: lint
lint:
flake8 .
test: test_unit lint
.PHONY: mypy
mypy:
mypy --ignore-missing-imports --follow-imports=skip --strict-optional --warn-no-return amundsen_application
.PHONY: test
test: test_unit lint mypy
......@@ -28,6 +28,11 @@ mock==2.0.0
# Upstream url: https://pypi.python.org/pypi/pytest-mock
pytest-mock==1.1
# Mypy is an optional static type checker for Python.
# License: MIT
# Upstream url: https://github.com/python/mypy
mypy==0.660
# PEP 484
# License: PSF
# Upstream url: https://github.com/python/typing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment