summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-04-07 09:20:07 -0400
committerGitHub <noreply@github.com>2017-04-07 09:20:07 -0400
commita2c032631b8e9b7023502bd0210b97bf1661d9ba (patch)
tree4b1cb708390d5d0c51e465259dd40aa238c0c5fe /appveyor.yml
parentRollup merge of #41061 - arielb1:parent-lock, r=eddyb (diff)
parentEnable appveyor cache, add more paranoia (diff)
downloadgrust-a2c032631b8e9b7023502bd0210b97bf1661d9ba.tar.gz
grust-a2c032631b8e9b7023502bd0210b97bf1661d9ba.tar.bz2
grust-a2c032631b8e9b7023502bd0210b97bf1661d9ba.tar.xz
Rollup merge of #41075 - aidanhs:aphs-enable-appveyor-cache, r=alexcrichton
Re-enable appveyor cache After breaking the queue last time, I'm cautiously back with a PR to re-enable caching on appveyor. If you look at https://ci.appveyor.com/project/rust-lang/rust/build/1.0.2623/job/46o90by4ari6gege (one of the multiple runs that started failed, there are actually two errors - one for restoring the cache, one right at the bottom for creating a directory. I only noticed the restore error at the time as I was a bit rushed to revert and didn't stop to wonder why it continued - turns out appveyor [does not abort on cache restore failure](https://github.com/appveyor/ci/issues/723). Turns out the cause of the build failures was the cache directory existing and me being thinking that because mkdir on windows is [recursive by default](http://stackoverflow.com/a/905239/2352259), it ignores the error if the directory already exists. Apparently this is not true, so now it checks if the directory exists before attempting to create. In addition, I've added some more paranoia to double check everything is sane.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 83cfea0dd8..9070c5d9ed 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -141,15 +141,18 @@ install:
141 - set SCCACHE_ERROR_LOG=%CD%/sccache.log 141 - set SCCACHE_ERROR_LOG=%CD%/sccache.log
142 142
143test_script: 143test_script:
144 - appveyor-retry sh -c 'git submodule deinit -f . && git submodule update --init' 144 - if not exist C:\cache\rustsrc\NUL mkdir C:\cache\rustsrc
145 - sh src/ci/init_repo.sh . /c/cache/rustsrc
145 - set SRC=. 146 - set SRC=.
146 - set NO_CCACHE=1 147 - set NO_CCACHE=1
147 - sh src/ci/run.sh 148 - sh src/ci/run.sh
148 149
149on_failure: 150on_failure:
150 - cat %CD%/sccache.log 151 - cat %CD%\sccache.log
152 - cat C:\Users\appveyor\AppData\Local\Temp\1\build-cache-logs\*.log
151 153
152cache: 154cache:
155 - C:\cache\rustsrc
153 - "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger" 156 - "build/i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger"
154 - "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger" 157 - "build/x86_64-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger"
155 - "i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger" 158 - "i686-pc-windows-msvc/llvm -> src/rustllvm/llvm-rebuild-trigger"