Skip to content

Commit

Permalink
Added Travis-CI setup (#1)
Browse files Browse the repository at this point in the history
- Added 'build' to flake8 exclude
- Fixed a lint error
  • Loading branch information
Daniel authored Feb 13, 2019
1 parent f2644c3 commit 127f971
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions databuilder/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: python
python: 2.7
install:
- pip install -r requirements.txt
- python setup.py install
script:
- make test
1 change: 0 additions & 1 deletion databuilder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ test_unit2:

test_unit3:
python3 -bb -m pytest tests/unit

Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _fetch_old_index(self):
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 []
Expand Down
2 changes: 1 addition & 1 deletion databuilder/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[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
Expand Down

0 comments on commit 127f971

Please sign in to comment.