Use ccache in Travis (#64)
* Use ccache in Travis This should speed up builds as we are rebuilding the same libvirt versions and it takes over half of test run time. * Show ccache stats before and after building libvirt
This commit is contained in:
parent
0978bc3291
commit
6075ea3c39
16
.travis.yml
16
.travis.yml
@ -3,13 +3,20 @@ os: linux
|
||||
dist: trusty
|
||||
sudo: require
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.ccache
|
||||
|
||||
go:
|
||||
- "1.10"
|
||||
|
||||
env:
|
||||
- LIBVIRT=1.2.12 EXT=gz
|
||||
- LIBVIRT=2.3.0 EXT=xz
|
||||
- LIBVIRT=3.1.0 EXT=xz
|
||||
global:
|
||||
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
||||
matrix:
|
||||
- LIBVIRT=1.2.12 EXT=gz
|
||||
- LIBVIRT=2.3.0 EXT=xz
|
||||
- LIBVIRT=3.1.0 EXT=xz
|
||||
|
||||
before_install:
|
||||
- go get github.com/golang/lint/golint
|
||||
@ -24,13 +31,16 @@ install:
|
||||
- curl -O -s https://libvirt.org/sources/libvirt-${LIBVIRT}.tar.${EXT}
|
||||
- tar -C /usr/src -xf libvirt-${LIBVIRT}.tar.${EXT}
|
||||
- pushd /usr/src/libvirt-${LIBVIRT}
|
||||
- ccache --show-stats
|
||||
- |
|
||||
env PATH=/usr/lib/ccache:$PATH \
|
||||
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
|
||||
--without-polkit \
|
||||
--without-esx --without-vbox --without-xen --without-libxl --without-lxc \
|
||||
--with-qemu
|
||||
- make
|
||||
- sudo make install
|
||||
- ccache --show-stats
|
||||
- popd
|
||||
- sudo libvirtd -d -l -f libvirtd.conf
|
||||
- sudo virtlogd -d || true
|
||||
|
Loading…
x
Reference in New Issue
Block a user