Skip to content
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

Use ccache on Travis #261

Merged
merged 2 commits into from
Jun 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ julia:
- 1.1
- nightly

cache: ccache

env:
global:
- MAKEFLAGS="-j4"
- JULIA_TRACK_COVERAGE=yes
- PATH="/usr/lib/ccache:$PATH"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not necessary, travis adds /usr/lib/ccache automatically to the path when ccache is enabled.

Suggested change
- PATH="/usr/lib/ccache:$PATH"
- PATH="/usr/lib/ccache:$PATH"

Copy link
Member Author

Choose a reason for hiding this comment

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

As I understood it, it only does so with language: c or language: c++. In any case, I don't see /usr/lib/ccache twice in the PATH... But sure, I can try what happens if I remove that line.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah, that might be a restriction. No, it is fine for me as it is.

matrix:
- GAP=$HOME/.julia/gap.sh
GAP_INSTALL_PACKAGES=debug
Expand All @@ -26,6 +29,10 @@ branches:
before_script:
- unset JULIA_PROJECT
- printenv | sort
- which gcc
- which g++
- which cc
- which c++
- git show --pretty=fuller -s
- mkdir -p coverage
- export CFLAGS=--coverage; export LDFLAGS=--coverage
Expand Down