mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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., https://github.com/servo/mozjs/pull/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 -->
33 lines
639 B
YAML
33 lines
639 B
YAML
language: python
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- sudo: false
|
|
script: ./mach test-tidy
|
|
cache: false
|
|
- sudo: 9000
|
|
dist: trusty
|
|
script:
|
|
- ./mach build -d --verbose
|
|
- bash etc/ci/lockfile_changed.sh
|
|
cache:
|
|
directories:
|
|
- .cargo
|
|
- .servo
|
|
- $HOME/.ccache
|
|
env: CCACHE=/usr/bin/ccache
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- cmake
|
|
- freeglut3-dev
|
|
- gperf
|
|
- libosmesa6-dev
|
|
- python-virtualenv
|
|
- xorg-dev
|
|
- ccache
|
|
|
|
branches:
|
|
only:
|
|
- master
|