diff options
author | Jason Gross <jgross@mit.edu> | 2017-12-13 02:52:23 -0500 |
---|---|---|
committer | Jason Gross <jasongross9@gmail.com> | 2018-01-16 09:06:57 +0100 |
commit | 12ff6daadb3b53c07f10b8ba726ae4694a312573 (patch) | |
tree | d08357441b03865643b39a9165bec123147c6d25 /etc | |
parent | e189b6c84a085f1e509becaa8fb4eac0132f3bfe (diff) |
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.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/ci/travis.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 $? |