Skip to content

Improve Travis performance #745

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 2 commits into from
Apr 3, 2017
Merged

Improve Travis performance #745

merged 2 commits into from
Apr 3, 2017

Conversation

forejtv
Copy link
Contributor

@forejtv forejtv commented Mar 31, 2017

All jobs now have ccache enabled, which means that subsequent compilation should be able to reuse the compiled files, and thus the job running time should be faster.

As part of the above, travis.yml needed to be restructured, in particular:

  • instead of running the compilation and tests as one command, the commands are split
  • cegis etc. compilation takes place before the tests are run.

While restructuring the travis.yml file, I also set cpplint as a failable job. This does not improve performance, just the output readability.

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is env: COMPILER="ccache g++" not required for OS X and Linux?

@zemanlx
Copy link

zemanlx commented Apr 3, 2017

@peterschrammel That's because travis caching adding ccached links to compilers into the PATH for them, but not to docker container, therefore we need to call it manually.

@peterschrammel
Copy link
Member

I see

forejtv added 2 commits April 3, 2017 16:10
All jobs now have ccache enabled, which means that subsequent compilation should be able to reuse the compiled files, and thus the job running time should be faster.

As part of the above, travis.yml needed to be restructured, in particular:
* instead of running the compilation and tests as one command, they are split
* cegis etc. compilation takes place before the tests are run.
This is more preferrable than using ``|| true``.
@kroening kroening merged commit 49163a4 into diffblue:master Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants