From cf09cab0f40b69da5e177a08d2ce3ff533dc83c5 Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Mon, 26 Oct 2015 09:01:18 +0000 Subject: [PATCH 1/2] Don't cache the GHC folder Experiments show caching the GHC folder makes appveyor go 2 to 3 minutes slower in the best case, and has a massively higher chance of falling over. Appveyor recommends the cache folders be < 100Mb, which this violates. Appveyor also zips the folders at the end, which is why caching is slower. --- appveyor.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 8da9d21878..42ab8a83e4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,5 @@ cache: - "c:\\sr" # stack root, short paths == less problems -- "%LOCALAPPDATA%\\Programs\\stack" build: off From 374296c869ee2dfb98e1997391c9dc3fe0e1399c Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Mon, 26 Oct 2015 09:02:38 +0000 Subject: [PATCH 2/2] Use stack setup so you can ignore most of the output A workaround for https://github.com/commercialhaskell/stack/issues/1212 --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 42ab8a83e4..aabcef8e85 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,7 @@ environment: STACK_ROOT: "c:\\sr" test_script: +- stack setup > nul # The ugly echo "" hack is to avoid complaints about 0 being an invalid file # descriptor -- echo "" | stack --arch i386 --no-terminal --install-ghc test +- echo "" | stack --no-terminal test