mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 02:35:48 +00:00 
			
		
		
		
	* use tagged containers for pkg build * update build images * continue to build container images in pipeline, but allow failure (non-block) * limit travis macos cache * add vs2019 windows to travis * remove xcode 9 travis build * remove clang5/6 from CI and update min version of Clang required in cmake * break windows CI build into stages to reduce timeouts * update datelib * add if condition to travis builds to allow commit message to limit builds by platform
		
			
				
	
	
		
			29 lines
		
	
	
		
			895 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			895 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env sh
 | 
						|
set -ex
 | 
						|
pkgtype=$1
 | 
						|
if [ "${pkgtype}" = "rpm" ] ; then
 | 
						|
    container_name="${RPM_CONTAINER_NAME}"
 | 
						|
elif [ "${pkgtype}" = "dpkg" ] ; then
 | 
						|
    container_name="${DPKG_CONTAINER_NAME}"
 | 
						|
else
 | 
						|
    echo "invalid package type"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
if docker pull "${ARTIFACTORY_HUB}/${container_name}:latest_${CI_COMMIT_REF_SLUG}"; then
 | 
						|
    echo "found container for latest - using as cache."
 | 
						|
    docker tag \
 | 
						|
       "${ARTIFACTORY_HUB}/${container_name}:latest_${CI_COMMIT_REF_SLUG}" \
 | 
						|
       "${container_name}:latest_${CI_COMMIT_REF_SLUG}"
 | 
						|
    CMAKE_EXTRA="-D${pkgtype}_cache_from=${container_name}:latest_${CI_COMMIT_REF_SLUG}"
 | 
						|
fi
 | 
						|
 | 
						|
cmake --version
 | 
						|
test -d build && rm -rf build
 | 
						|
mkdir -p build/container && cd build/container
 | 
						|
eval time \
 | 
						|
    cmake -Dpackages_only=ON -DCMAKE_VERBOSE_MAKEFILE=ON ${CMAKE_EXTRA} \
 | 
						|
    -G Ninja ../..
 | 
						|
time cmake --build . --target "${pkgtype}_container" -- -v
 | 
						|
 |