Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
907c1dc3
Unverified
Commit
907c1dc3
authored
Feb 13, 2019
by
Daniel
Committed by
GitHub
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Travis-CI setup (#1)
- Added 'build' to flake8 exclude - Fixed a lint error
parent
28e449d0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
.travis.yml
.travis.yml
+7
-0
Makefile
Makefile
+0
-1
elasticsearch_publisher.py
databuilder/publisher/elasticsearch_publisher.py
+1
-1
setup.cfg
setup.cfg
+1
-1
No files found.
.travis.yml
0 → 100644
View file @
907c1dc3
language
:
python
python
:
2.7
install
:
-
pip install -r requirements.txt
-
python setup.py install
script
:
-
make test
Makefile
View file @
907c1dc3
...
@@ -18,4 +18,3 @@ test_unit2:
...
@@ -18,4 +18,3 @@ test_unit2:
test_unit3
:
test_unit3
:
python3
-bb
-m
pytest tests/unit
python3
-bb
-m
pytest tests/unit
databuilder/publisher/elasticsearch_publisher.py
View file @
907c1dc3
...
@@ -134,7 +134,7 @@ class ElasticsearchPublisher(Publisher):
...
@@ -134,7 +134,7 @@ class ElasticsearchPublisher(Publisher):
try
:
try
:
indices
=
self
.
elasticsearch_client
.
indices
.
get_alias
(
self
.
elasticsearch_alias
)
.
keys
()
indices
=
self
.
elasticsearch_client
.
indices
.
get_alias
(
self
.
elasticsearch_alias
)
.
keys
()
return
indices
return
indices
except
NotFoundError
as
ne
:
except
NotFoundError
:
LOGGER
.
warn
(
"Received index not found error from Elasticsearch"
,
exc_info
=
True
)
LOGGER
.
warn
(
"Received index not found error from Elasticsearch"
,
exc_info
=
True
)
# return empty list on exception
# return empty list on exception
return
[]
return
[]
...
...
setup.cfg
View file @
907c1dc3
[flake8]
[flake8]
format = pylint
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-complexity = 10
max-line-length = 120
max-line-length = 120
ignore = NONE
ignore = NONE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment