Make macOS build on Travis #16

Closed
jobevers wants to merge 198 commits from build-oxs into master
jobevers commented 2016-07-11 23:33:40 +02:00 (Migrated from github.com)

Sigh. This turned into a beast. First, travis has a 4mb log limit which boost blasted right through. So I piped the make stdout to a file. Then, travis will timeout a build if it doesn't see anything on stdout for 10 minutes, so I had to background make and echo a "I'm still alive" message every minute. Then, travis has a 50 minute timeout so I had to add caching and checks for whether the cache had been populated or not. The staged boost installation is very large and would timeout the cache upload, so I switched over to an installed boost.

This is easily the most complicated bash script I've ever written.

Sigh. This turned into a beast. First, travis has a 4mb log limit which boost blasted right through. So I piped the `make` stdout to a file. Then, travis will timeout a build if it doesn't see anything on stdout for 10 minutes, so I had to background `make` and echo a "I'm still alive" message every minute. Then, travis has a 50 minute timeout so I had to add caching and checks for whether the cache had been populated or not. The staged boost installation is very large and would timeout the cache upload, so I switched over to an installed boost. This is easily the most complicated bash script I've ever written.
jobevers commented 2016-07-11 23:42:26 +02:00 (Migrated from github.com)

Once this gets reviewed, I'll rebase everything down into one commit before merging.

Once this gets reviewed, I'll rebase everything down into one commit before merging.
lyoshenka commented 2016-07-11 23:49:50 +02:00 (Migrated from github.com)

You should run this through http://www.shellcheck.net . You don't have to fix everything because its very nitpicky, but it may have good ideas there.

Also, can you make it do the right thing by default when you run it outside of travis? I think you just have to set CLONE and TRACE to true by default.

Looking at the rest now...

You should run this through http://www.shellcheck.net . You don't have to fix everything because its very nitpicky, but it may have good ideas there. Also, can you make it do the right thing by default when you run it outside of travis? I think you just have to set CLONE and TRACE to true by default. Looking at the rest now...

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#16
No description provided.