fix travis and ES (#37)

This commit is contained in:
Tom Kralidis
2018-04-29 08:20:59 -04:00
committed by GitHub
parent f0ef4940a9
commit 325cd05e1b
3 changed files with 8 additions and 5 deletions
+7 -3
View File
@@ -5,6 +5,9 @@ dist: xenial
python:
- "3.5"
services:
= elasticsearch
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libsqlite3-mod-spatialite pandoc devscripts
@@ -17,11 +20,12 @@ install:
env:
- PYGEOAPI_CONFIG=pygeoapi-config.yml
#before_script:
# - pygeoapi generate_openapi_document -c pygeoapi-config.yml > pygeoapi-openapi.yml
before_script:
- sleep 10
- python tests/load_es_data.py tests/data/ne_110m_populated_places_simple.geojson
- pygeoapi generate_openapi_document -c pygeoapi-config.yml > pygeoapi-openapi.yml
script:
- pygeoapi generate_openapi_document -c pygeoapi-config.yml > pygeoapi-openapi.yml
- pytest --cov=pygeoapi
- find . -type f -name "*.py" | xargs flake8
- python setup.py --long-description | rst2html5.py
+1 -1
View File
@@ -199,7 +199,7 @@ def get_oas_30(cfg):
for k2, v2 in p.fields.items():
path_ = '{}/items'.format(collection_name_path)
paths['{}/items'.format(path_)]['get']['parameters'].append({
paths['{}'.format(path_)]['get']['parameters'].append({
'name': k2,
'in': 'query',
'required': False,
-1
View File
@@ -34,7 +34,6 @@ import sys
from elasticsearch import Elasticsearch
es = Elasticsearch()
index_name = 'ne_110m_populated_places_simple'
type_name = 'FeatureCollection'
if (sys.argv) == 1: