On Fri, Dec 12, 2014 at 2:26 PM, Andrea Aime <[email protected]>
wrote:
>
> and something here:
> http://docs.travis-ci.com/user/caching/
>
> but it's not clear to me how to make the maven repo get cached...
>
>
>
If you are on a paid account you can enable maven dependency caching pretty
simply by adding the following directive to the .travis.yml
cache: directories: - $HOME/.m2
If you aren't on a paid account you have to roll your own. Something like
this:
http://hgc.io/2014/08/26/Caching-Travis-CI-dependencies-in-S3/
(with a few tweaks - it's nice for the openssl based invocation of the S3
rest api)
basically tap into the before/after script hooks - take a hash of all the
pom's in the pocket, and check to see if you have an S3 object ID that
matches the hash - if so, download that object (should be a .tar.gz of the
.m2 repo). If not download repo like normal, and if a build success tar
it up and post it to the s3 bucket. Next build will only have one S3
download instead of multiple maven repos. I use the pom hashes in this
case as a "has anything changed" signal (i.e. download from maven)
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel