Skip to content

Speed up OSX builds on Travis #783

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 1 commit into from
Apr 8, 2017
Merged

Speed up OSX builds on Travis #783

merged 1 commit into from
Apr 8, 2017

Conversation

forejtv
Copy link
Contributor

@forejtv forejtv commented Apr 7, 2017

Do not autoupdate Homebrew, and limit cache size to 1G.

Do not autoupdate Homebrew, and limit cache size to 1G.
@tautschnig
Copy link
Collaborator

Is there any documentation or other background that you might be able to provide? From the outside, those changes seem perfectly consistent, but also rather random.

@forejtv
Copy link
Contributor Author

forejtv commented Apr 7, 2017

@tautschnig Yes, sure. It turns out ccache on Travis on OSX is not ideally configured, for two reasons.

  • It needs to be installed via Homebrew. By default, any install via Homebrew triggers an update, which adds ~1min to the job time. The switch we add disables the upgrade.
  • Max cache size is 5GB wich actually makes Travis timeout on cache upload (maximal time for upload is 3mins). As a consequence, compilation does not take advantage of caching (cache is not stored from previous build), plus there is 3 minute delay until the upload fail. See examples when it did not work and an exmple from when the cache was small and it worked. Setting cache to 1GB brings OSX in line with how it's set on Travis's Linux build

@kroening kroening merged commit f6a35f3 into diffblue:master Apr 8, 2017
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.

3 participants