Add a comment for disabling errexit

This commit is contained in:
Aidan Hobson Sayers 2017-04-08 08:39:31 +01:00
parent 547c12b8a6
commit bb843582ca
2 changed files with 3 additions and 2 deletions

View File

@ -148,8 +148,7 @@ test_script:
- sh src/ci/run.sh
on_failure:
- cat %CD%\sccache.log
- cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log
- cat %CD%\sccache.log || exit 0
cache:
- C:\cache\rustsrc

View File

@ -41,6 +41,8 @@ if [ ! -f "$cache_valid_file" ]; then
rm -rf "$CACHE_DIR"
mkdir "$CACHE_DIR"
else
# Ignore errors while gathering information about the possible brokenness
# of the git repo since our gathered info will tell us something is wrong
set +o errexit
stat_lines=$(cd "$cache_src_dir" && git status --porcelain | wc -l)
stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1; echo $?)