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

Travis CI #903

Merged
merged 2 commits into from
Aug 27, 2014
Merged

Travis CI #903

merged 2 commits into from
Aug 27, 2014

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Aug 23, 2014

Travis needs to be enabled on this repo for this to work, but this will check that the .mml file is valid JSON and that carto compiles it without errors. See pnorman#2 for an example of how it looks.

This only checks for JSON validity, but it's a start
We have to touch the shapefiles to make it not complain that they don't exist.
gravitystorm added a commit that referenced this pull request Aug 27, 2014
Add config file for Travis CI
@gravitystorm gravitystorm merged commit 74dc238 into gravitystorm:master Aug 27, 2014
@gravitystorm
Copy link
Owner

Interesting stuff! Should at least handle the most egregious pull request problems. I've enabled it with travis-ci.org so we should start seeing results today.

I've just read in the documentation that updates to the upstream don't trigger rebuilds, i.e. stale pull requests might remain marked as passing even after master gets more patches. Roll on #711 !

@matthijsmelissen
Copy link
Collaborator

Nice. I wonder what more we can do with this.

We sometimes often pull requests that only serve to refactor the code without intending to change the resulting map. Would there be any way to test this automatically, given an example osm file for example? It would also be nice if we could show that a PR that changes POIs does not have influence on road rendering, and vice versa. Both involve comparing the output with the previous version, so I'm not sure if Travis CI is the right way to handle this.

In general, are two generated PNG files from the same (or equivalent) carto/mapnik code expected to be bit-by-bit equal, or is there a level of nondeterminism?

@pnorman
Copy link
Collaborator Author

pnorman commented Aug 27, 2014

In general, are two generated PNG files from the same (or equivalent) carto/mapnik code expected to be bit-by-bit equal, or is there a level of nondeterminism?

The PostgreSQL layer has parts that are both undefined (ordering of tables) and nondeterministic (GiST index pick-split) code.

travis is not the right way to handle this, as a PR that changes rendering is not in error for that fact alone.

I'd be happy simply checking that all SQL works - that there are no columns referenced in the style that aren't in the query, etc.

@matthijsmelissen
Copy link
Collaborator

that there are no columns referenced in the style that aren't in the query,

That would certainly be helpful.

@pnorman pnorman deleted the travis branch September 10, 2014 01:25
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

Successfully merging this pull request may close these issues.

3 participants