From 12ff6daadb3b53c07f10b8ba726ae4694a312573 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 13 Dec 2017 02:52:23 -0500 Subject: Attempt to build travis in stages Hopefully this will lead to overall faster builds Also: - try to allow failures - Version-specific vo caches - Make archives stage-specific This way, if multiple branches are running stages at the same time, they don't have as much a chance of clobbering each others builds. --- etc/ci/travis.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 etc/ci/travis.sh (limited to 'etc') diff --git a/etc/ci/travis.sh b/etc/ci/travis.sh new file mode 100755 index 000000000..22b6fdbf5 --- /dev/null +++ b/etc/ci/travis.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -x + +CACHE_DIR="$HOME/.cache/vos" +PREV_ARCHIVE="${CACHE_DIR}/vos-${COQ_VERSION}-${PREV}.tar.gz" +CUR_ARCHIVE="${CACHE_DIR}/vos-${COQ_VERSION}-${CUR}.tar.gz" + +tar -xzf "${PREV_ARCHIVE}" || true +mkdir -p "${CACHE_DIR}" +shift + +make "$@" -j2 TIMED=1 2>&1 | tee -a time-of-build.log +python "./etc/coq-scripts/timing/make-one-time-file.py" "time-of-build.log" "time-of-build-pretty.log" || exit $? +rm -f "${CUR_ARCHIVE}" +tar -czf "${CUR_ARCHIVE}" time-of-build.log src Bedrock coqprime + +cat time-of-build-pretty.log +make "$@" -j2 TIMED=1 || exit $? -- cgit v1.2.3