fix travis and ES (#37)
This commit is contained in:
+7
-3
@@ -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
@@ -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,
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user