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

Add CCACHE infra and turn it on in travis #8366

Merged
merged 2 commits into from Nov 7, 2015
Merged

Conversation

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 5, 2015

r? @Manishearth

This lets devs configure their use of CCACHE with their .servobuild file, as usual. For build environments, they can either have a .servobuild file or set the CCACHE env var to point at the ccache binary to use.

It also adds support for ccache to our travis builds. Buildbot will come in a separate commit to the saltfs repo.

It is expected that the various cargo makefiles will look at this variable and do the "right thing" to tell their native build to instead use ccache. e.g., servo/mozjs#62

Review on Reviewable

@Manishearth
Copy link
Member

Manishearth commented Nov 5, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 5, 2015

📌 Commit 5c5acc0 has been approved by Manishearth

@frewsxcv
Copy link
Member

frewsxcv commented Nov 5, 2015

@bors-servo r-

This causes Travis to fail. We should make it a policy to let Travis finish if the config file ever changes.

@larsbergstrom
Copy link
Contributor Author

larsbergstrom commented Nov 5, 2015

Could not locate requirements.txt. Override the install: key in your .travis.yml to install dependencies.

wat

@frewsxcv
Copy link
Member

frewsxcv commented Nov 5, 2015

It might be worth going this route: http://docs.travis-ci.com/user/caching/#ccache-cache ?

@larsbergstrom
Copy link
Contributor Author

larsbergstrom commented Nov 6, 2015

@frewsxcv That does the same thing (but also adds it to the PATH, which we don't need). I think there's something deeper going on, and I'll try to dig in tomorrow. I'm not sure how this is working at all today, as the travis validator claims that what we have right now gets most of its content thrown out because they're not valid in those parts of the file.

@frewsxcv
Copy link
Member

frewsxcv commented Nov 6, 2015

FWIW, I don't know think the current caching statements in the config do anything

@frewsxcv frewsxcv closed this Nov 6, 2015
@frewsxcv frewsxcv reopened this Nov 6, 2015
@frewsxcv
Copy link
Member

frewsxcv commented Nov 6, 2015

Asked about this on IRC. A response I got:

9:09 PM <jhass> frewsxcv: add the env to the matrix key
9:10 PM <jhass> cache: false\n     env: CCACCHE=...
9:10 PM <jhass> and the other one too
9:11 PM <jhass> or not

It might be worth adding the env section into the second matrix include and seeing what happens

@larsbergstrom
Copy link
Contributor Author

larsbergstrom commented Nov 7, 2015

This is green! Can I get a re-r+ including the new bit?

@frewsxcv
Copy link
Member

frewsxcv commented Nov 7, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2015

📌 Commit e0ea1e0 has been approved by frewsxcv

@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2015

Testing commit e0ea1e0 with merge d16ba51...

bors-servo added a commit that referenced this pull request Nov 7, 2015
Add CCACHE infra and turn it on in travis

r? @Manishearth

This lets devs configure their use of CCACHE with their .servobuild file, as usual. For build environments, they can either have a .servobuild file or set the CCACHE env var to point at the ccache binary to use.

It also adds support for ccache to our travis builds. Buildbot will come in a separate commit to the saltfs repo.

It is expected that the various cargo makefiles will look at this variable and do the "right thing" to tell their native build to instead use ccache. e.g., servo/mozjs#62

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8366)
<!-- Reviewable:end -->
@larsbergstrom larsbergstrom mentioned this pull request Nov 7, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Nov 7, 2015

bors-servo added a commit that referenced this pull request Nov 7, 2015
Update mozjs

r? @Manishearth

This mainly just picks up the support for ccache. I'd like to get one module using it to land to see how it works on Travis & the builders (probably should have done this along with #8366).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8387)
<!-- Reviewable:end -->
@bors-servo bors-servo merged commit e0ea1e0 into servo:master Nov 7, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
bors-servo added a commit that referenced this pull request Nov 7, 2015
Update mozjs

r? @Manishearth

This mainly just picks up the support for ccache. I'd like to get one module using it to land to see how it works on Travis & the builders (probably should have done this along with #8366).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8387)
<!-- Reviewable:end -->
@larsbergstrom larsbergstrom deleted the larsbergstrom:ccache branch Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.