Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First try toward a "travis-ci" continous integration #17

Open
chatelao opened this issue Oct 14, 2019 · 3 comments
Open

First try toward a "travis-ci" continous integration #17

chatelao opened this issue Oct 14, 2019 · 3 comments

Comments

@chatelao
Copy link

chatelao commented Oct 14, 2019

I did several steps towards a "continuos integration" on www.travis-ci.com:

This steps already work more or less:

  1. "/vagrant" independent location run (Defined as "~travis/USER/REPO")
  2. Automatic download "Monaco.latest.pdf" before test run
  3. Setup PostGre-PostGIS 11-2.5 database
  4. Disable of "places" load (diskspace issue)
  5. Run test outside "provision.sh" (travis adapted process)
  6. Some more logging ...

Problem:

  • Now the step calculating the bbox fails (eval b=$bbox) and I have no clue why. - If anyone could help would be great.
@hholzgra
Copy link
Owner

provision.sh was missing the "#! /bin/bash" hash bang line to enforce execution with bash. Looks as if vagrant is using bash for shell provisioning scripts by default, but when using the system default shell /bin/sh this can indeed easily break as that's usually not bash anymore on current distributions, e.g. on Ubuntu it is a symlink to /bin/dash, the Debian Almquist shell, instead.

The bounds / bbox calculation is using bash specific array syntax, so it is indeed bound to fail when executed by a different shell.

I just pushed commit ad6fa4a that should fix this.

@hholzgra
Copy link
Owner

There were also some other issues with the bbox code, e.g. "City search" did not work correctly anymore. This has been fixed over the weekend, also the bbox code has been extended to also determine simplified polygon data bounds in addition to simple bbox.

It does so by looking for the largest polygon in the imported data set, assuming that this is the true import border. This is true for all regional extracts from Geofabrik, but would not necessarily be true for other extracts like e.g. those created by the BBike site ...

See also:

https://blog.osm-baustelle.de/index.php/2019/10/13/data-area-bounds/

@chatelao
Copy link
Author

chatelao commented Oct 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants