From 1d33edbe740c0bb0211ecb4f66a6f81bd8cd33a8 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 8 Aug 2018 11:08:33 -0400 Subject: [travis] Only run git diff on failure --- etc/ci/travis.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/ci/travis.sh b/etc/ci/travis.sh index 6c28b40da..981dcd7e1 100755 --- a/etc/ci/travis.sh +++ b/etc/ci/travis.sh @@ -9,11 +9,14 @@ CUR_ARCHIVE="${CACHE_DIR}/vos-${COQ_VERSION}-${CUR}.tar.gz" tar -xzf "${PREV_ARCHIVE}" || true mkdir -p "${CACHE_DIR}" -make "$@" -j2 TIMED=1 2>&1 | tee -a time-of-build.log +rm -f finished.ok +(make "$@" -j2 TIMED=1 2>&1 && touch finished.ok) | 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 bbv coqprime || exit $? -git diff +if [ ! -f finished.ok ]; then + git diff +fi cat time-of-build-pretty.log make "$@" -j2 TIMED=1 || exit $? -- cgit v1.2.3