Cache gcc and clang APT packages
This commit is contained in:
		
							parent
							
								
									0f9cadacdb
								
							
						
					
					
						commit
						7d39774bbb
					
				
							
								
								
									
										21
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.travis.yml
									
									
									
									
									
								
							@ -44,6 +44,17 @@ matrix:
 | 
				
			|||||||
      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
 | 
					      env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
 | 
				
			||||||
      if: type != pull_request
 | 
					      if: type != pull_request
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					before_install:
 | 
				
			||||||
 | 
					  - |
 | 
				
			||||||
 | 
					    if [ ! -f ${TRAVIS_BUILD_DIR}/apt-cache/pkgcache.bin ]; then
 | 
				
			||||||
 | 
					       mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/archives/partial
 | 
				
			||||||
 | 
					       mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/partial
 | 
				
			||||||
 | 
					       mkdir -p ${TRAVIS_BUILD_DIR}/apt-cache/lists
 | 
				
			||||||
 | 
					       sudo apt-get -y -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists update
 | 
				
			||||||
 | 
					       sudo apt-get install --download-only -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					  - sudo apt-get install --no-download -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# These are the install and build (script) phases for the most common entries in the matrix.  They could be included
 | 
					# These are the install and build (script) phases for the most common entries in the matrix.  They could be included
 | 
				
			||||||
# in each entry in the matrix, but that is just repetitive.
 | 
					# in each entry in the matrix, but that is just repetitive.
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
@ -63,9 +74,13 @@ addons:
 | 
				
			|||||||
    sources:
 | 
					    sources:
 | 
				
			||||||
    - ubuntu-toolchain-r-test
 | 
					    - ubuntu-toolchain-r-test
 | 
				
			||||||
    - llvm-toolchain-precise-3.9
 | 
					    - llvm-toolchain-precise-3.9
 | 
				
			||||||
    packages:
 | 
					
 | 
				
			||||||
    - g++-4.9
 | 
					before_cache:
 | 
				
			||||||
    - clang-3.9
 | 
					  - sudo chown -R $USER ${TRAVIS_BUILD_DIR}/apt-cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cache:
 | 
				
			||||||
 | 
					  directories:
 | 
				
			||||||
 | 
					    - apt-cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
notifications:
 | 
					notifications:
 | 
				
			||||||
  email: false
 | 
					  email: false
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user