Skip to content

Travis: cache pip and compiled libgeos binaries #248

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

Merged
merged 3 commits into from
Dec 31, 2015
Merged

Travis: cache pip and compiled libgeos binaries #248

merged 3 commits into from
Dec 31, 2015

Conversation

micahcochran
Copy link
Contributor

This enables caching of pip wheels and libgeos compiled binaries. It should speed up build times for Travis-CI testing.

After the cache is built, most of the instances will build in less than 2 minutes. The first time compiling it may take 6-15 minutes per instance. On "nightly" libGEOS will always build from source, not sure what pip. It should run about 10 minutes.

Times: first build versus already cached

Set "middle of the road" configuration to numpy=1.9.3. A more flexible configuration caused too many problems in testing. If you know a more maintainable way to do this, please submit a PR.

Cache stored is 670 MiB.

"nightly" will fail until PR #246 is merged.

After the cache is built most of the instances will build in less than 2 minutes.  The first time compiling it may take 6-15 minutes per instance.  On "nightly"  libGEOS will always build from source, not sure what pip. It should run about 10 minutes.

Times: [first build](https://travis-ci.org/micahcochran/basemap/builds/98557792) versus [already cached](https://travis-ci.org/micahcochran/basemap/builds/98556050)

Set "middle of the road" configuration to numpy=1.9.3.    A more flexible configuration caused too many problems in testing.  If you know a more maintainable way to do this, please submit a PR.

Cache stored is 670 MiB.

"nightly" will fail until PR #246 is merged.
@@ -82,53 +87,58 @@ matrix:
allow_failures:
- python: "nightly"

# before_install:
before_install:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why uncomment this if it isn't doing anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep flip flopping on switching virtualenv on and off. I wasn't looking at it closely enough. I'll fix it.

@WeatherGod
Copy link
Member

besides that one little nitpick, this looks ok to me.

WeatherGod added a commit that referenced this pull request Dec 31, 2015
Travis: cache pip and compiled libgeos binaries
@WeatherGod WeatherGod merged commit e85af3c into matplotlib:master Dec 31, 2015
@micahcochran
Copy link
Contributor Author

Thank you!

@micahcochran micahcochran deleted the caching branch December 31, 2015 20:25
@WeatherGod
Copy link
Member

No problem. By they way, could you email me directly? I don't have your email address.

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.

2 participants