Unverified Commit 907c1dc3 authored by Daniel's avatar Daniel Committed by GitHub

Added Travis-CI setup (#1)

- Added 'build' to flake8 exclude
- Fixed a lint error
parent 28e449d0
language: python
python: 2.7
install:
- pip install -r requirements.txt
- python setup.py install
script:
- make test
......@@ -18,4 +18,3 @@ test_unit2:
test_unit3:
python3 -bb -m pytest tests/unit
......@@ -134,7 +134,7 @@ class ElasticsearchPublisher(Publisher):
try:
indices = self.elasticsearch_client.indices.get_alias(self.elasticsearch_alias).keys()
return indices
except NotFoundError as ne:
except NotFoundError:
LOGGER.warn("Received index not found error from Elasticsearch", exc_info=True)
# return empty list on exception
return []
......
[flake8]
format = pylint
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv,databuilder/sql_parser/usage/presto/antlr_generated
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv,build,databuilder/sql_parser/usage/presto/antlr_generated
max-complexity = 10
max-line-length = 120
ignore = NONE
......
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