mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +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
772 B
Bash
29 lines
772 B
Bash
#!/usr/bin/env sh
|
|
set -ex
|
|
pkgtype=$1
|
|
if [ "${pkgtype}" = "rpm" ] ; then
|
|
container_name="${RPM_CONTAINER_FULLNAME}"
|
|
container_tag="${RPM_CONTAINER_TAG}"
|
|
elif [ "${pkgtype}" = "dpkg" ] ; then
|
|
container_name="${DPKG_CONTAINER_FULLNAME}"
|
|
container_tag="${DPKG_CONTAINER_TAG}"
|
|
else
|
|
echo "invalid package type"
|
|
exit 1
|
|
fi
|
|
time docker pull "${ARTIFACTORY_HUB}/${container_name}"
|
|
docker tag \
|
|
"${ARTIFACTORY_HUB}/${container_name}" \
|
|
"${container_name}"
|
|
docker images
|
|
test -d build && rm -rf build
|
|
mkdir -p build/${pkgtype} && cd build/${pkgtype}
|
|
time cmake \
|
|
-Dpackages_only=ON \
|
|
-Dcontainer_label="${container_tag}" \
|
|
-Dhave_package_container=ON \
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
-G Ninja ../..
|
|
time cmake --build . --target ${pkgtype} -- -v
|
|
|