Use the new Travis infrastructure#1270
Use the new Travis infrastructure#1270paf31 merged 1 commit intopurescript:masterfrom hdgarrood:new-travis
Conversation
|
If this works, I'm going to try using directory caching for cabal dependencies which I'm hoping will speed things up significantly. |
|
This is now out of date. See my commit message instead. |
* Switch to the new Travis infrastructure, which should hopefully speed builds up. * Cache two separate sandboxes: one for running cabal build && cabal test in, and one for testing that a source distribution can be installed. This should hopefully speed builds up further. * Fix a bug in the scripts which meant that coverage reports never got generated. * Use the `--disable-optimization` flag on `cabal configure` for all builds apart from release builds. On my machine this took the build time from 52s to 22s. * Separate the build and test-install stages so that Travis tells us how long each individual stage takes.
|
I think this is good now. Unfortunately I didn't see #1263 before I did this. May I ask that if you want to merge both, could you merge this one first? I'll happily fix merge conflicts in #1263 if so. This is just because fixing merge conflicts here if #1263 were merged first would be quite a lot more effort, I think. |
|
For some reason, the This slowdown seems to cancel out with the gains from caching the sandbox, leaving us with more or less the same build time. However, Travis will probably deprecate the old infrastructure eventually, and it seems likely that they'll improve whatever is causing the long build time on the new infrastructure, so I think these changes are still worth making. |
Use the new Travis infrastructure
|
Thanks! |
Hopefully this should make builds faster.