Skip to content

Commit

Permalink
Merge pull request #1439 from henrykironde/n-autocreate-spatial
Browse files Browse the repository at this point in the history
Retriever auto create spatial datasets
  • Loading branch information
apoorvaeternity committed Mar 5, 2020
2 parents f88c187 + a107572 commit 09eee10
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 133 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ before_install:
# Make dir corresponding to the version of Postgres used
- mkdir -p cli_tools/postgis-data/11/main
- chmod +x cli_tools/postgis-data/11/main
- docker-compose ps

# command to run tests using py.test
script:
- docker-compose run --service-ports python_retriever py.test -v --cov=retriever
- docker-compose run --service-ports python_retriever pytest -v --cov=retriever

after_success:
- codecov
- docker-compose run python_retriever flake8 --ignore=E501,W503,E402,F401,F403,E722,F841,W504 retriever --max-line-length=90
- docker-compose run python_retriever yapf --recursive retriever/engines --style=.style.yapf -d
- docker-compose run python_retriever pylint -rn retriever/ -f colorized --rcfile=.pylintrc
- docker-compose run python_retriever flake8 --ignore=E501,W503,E402,F401,F403,E722,F841,W504 retriever --max-line-length=90
- docker-compose run python_retriever yapf --recursive retriever/ --style=.style.yapf -d
- docker-compose run python_retriever pylint -rn retriever/ -f colorized --rcfile=.pylintrc

notifications:
slack:
Expand Down
3 changes: 2 additions & 1 deletion retriever/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def main():
if args.command == 'autocreate':
if sum([args.f, args.d]) == 1:
file_flag = bool(args.f)
create_package(args.path, args.dt, file_flag, args.o, args.skip_lines)
create_package(args.path, args.dt, file_flag, args.o, args.skip_lines,
args.e)
else:
print('Please use one and only one of the flags -f -d')
return
Expand Down

0 comments on commit 09eee10

Please sign in to comment.