quiet use of mapnik-test-data
This commit is contained in:
parent
18183aed2a
commit
27c959b1bf
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ script:
|
||||||
- ./configure CXX="${CXX}" CC="${CC}" CUSTOM_CXXFLAGS="${CUSTOM_CXXFLAGS}" CUSTOM_LDFLAGS="${CUSTOM_LDFLAGS}" XML_PARSER="${XML_PARSER}" ENABLE_LOG="${ENABLE_LOG}" DEBUG="${DEBUG}" DEMO="${DEMO}" BENCHMARK="${BENCHMARK}" CPP_TESTS=True CAIRO=True FAST=True || cat config.log
|
- ./configure CXX="${CXX}" CC="${CC}" CUSTOM_CXXFLAGS="${CUSTOM_CXXFLAGS}" CUSTOM_LDFLAGS="${CUSTOM_LDFLAGS}" XML_PARSER="${XML_PARSER}" ENABLE_LOG="${ENABLE_LOG}" DEBUG="${DEBUG}" DEMO="${DEMO}" BENCHMARK="${BENCHMARK}" CPP_TESTS=True CAIRO=True FAST=True || cat config.log
|
||||||
- if [[ "${DEBUG}" == True ]]; then export JOBS=$((JOBS/2)); fi;
|
- if [[ "${DEBUG}" == True ]]; then export JOBS=$((JOBS/2)); fi;
|
||||||
- make
|
- make
|
||||||
- git clone https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
|
- git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
|
||||||
- make test
|
- make test
|
||||||
- source localize.sh && make grind
|
- source localize.sh && make grind
|
||||||
- if [[ ${BENCHMARK} != False ]]; then make bench; fi;
|
- if [[ ${BENCHMARK} != False ]]; then make bench; fi;
|
||||||
|
|
|
@ -36,7 +36,7 @@ def test_opening_data():
|
||||||
for filepath in files:
|
for filepath in files:
|
||||||
ext = os.path.splitext(filepath)[1]
|
ext = os.path.splitext(filepath)[1]
|
||||||
if plugin_mapping.get(ext):
|
if plugin_mapping.get(ext):
|
||||||
print 'testing opening %s' % filepath
|
#print 'testing opening %s' % filepath
|
||||||
if 'topo' in filepath:
|
if 'topo' in filepath:
|
||||||
kwargs = {'type': 'ogr','file': filepath}
|
kwargs = {'type': 'ogr','file': filepath}
|
||||||
kwargs['layer_by_index'] = 0
|
kwargs['layer_by_index'] = 0
|
||||||
|
@ -53,8 +53,8 @@ def test_opening_data():
|
||||||
ds = mapnik.Datasource(**kwargs)
|
ds = mapnik.Datasource(**kwargs)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'could not open, %s: %s' % (kwargs,e)
|
print 'could not open, %s: %s' % (kwargs,e)
|
||||||
else:
|
#else:
|
||||||
print 'skipping opening %s' % filepath
|
# print 'skipping opening %s' % filepath
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
setup()
|
setup()
|
||||||
|
|
Loading…
Reference in a new issue