hpdeifel / hledger-iadd

A terminal UI as drop-in replacement for hledger add.
BSD 3-Clause "New" or "Revised" License
77 stars 8 forks source link

Remove -j2 to use less RAM in travis-ci #37

Closed samdoshi closed 5 years ago

samdoshi commented 5 years ago

(whoops hit the return button by accident before typing everything in)

This PR removes the -j2 from cabal new-build in the .travis.yml file. This should make it use less RAM at the expense of a much longer build time.

See #36 for a failed build due to not enough RAM

samdoshi commented 5 years ago

Well... that's just strange.

The exact same commit built fine from my fork:

https://travis-ci.org/samdoshi/hledger-iadd/builds/442725193

Perhaps it's an issue with your Travis caches?

hpdeifel commented 5 years ago

Hmm. I'm going to close this for now, since it seems that -j2 wasn't the actual problem. I'll debug this later (or wait if it magically fixes itself :-)

samdoshi commented 5 years ago

No worries, I can't say for definite that removing the -j2 will help. Sometimes (actually most of the time) Travis drives me up the wall.

I have had other projects where switching to -j1 definitely helped, so it might be something to remember for the future.

hpdeifel commented 5 years ago

Thanks, I'll keep that in mind if builds start failing with OOM again.