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:
		
				
					committed by
					
						 Ben LeMasurier
						Ben LeMasurier
					
				
			
			
				
	
			
			
			
						parent
						
							0978bc3291
						
					
				
				
					commit
					6075ea3c39
				
			
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							| @@ -3,10 +3,17 @@ os: linux | ||||
| dist: trusty | ||||
| sudo: require | ||||
|  | ||||
| cache: | ||||
|   directories: | ||||
|     - $HOME/.ccache | ||||
|  | ||||
| go: | ||||
|   - "1.10" | ||||
|  | ||||
| env: | ||||
|   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 | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user