From 6187c3cf090314f41aa5644097780d606960d321 Mon Sep 17 00:00:00 2001 From: ncaq Date: Tue, 19 Jun 2018 11:55:38 +0900 Subject: [PATCH] cleaned: appveyor: Easier to detect bugs * appveyor.yml conf file to simple from offcial reference * Make the cache easier to use by commenting out * fixed clone directory, from stack to yesod * curl check https * stack URL * split build and test, So we can easy detect build or test error * test job to single thread, So we can easy find bug of test --- appveyor.yml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d544676d..a1ef35d1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,19 +1,15 @@ +# cache: +# - '%AppData%\stack' + +install: + - curl -sS -ostack.zip -L https://get.haskellstack.org/stable/windows-i386.zip + - 7z x stack.zip stack.exe + - stack setup > nul + build: off -before_test: -# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found -- set PATH=C:\Program Files\Git\mingw64\bin;%PATH% - -- curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386 -- 7z x stack.zip stack.exe - -clone_folder: "c:\\stack" -environment: - global: - STACK_ROOT: "c:\\sr" +build_script: + - stack --no-terminal test --no-run-tests test_script: -- stack setup > nul -# The ugly echo "" hack is to avoid complaints about 0 being an invalid file -# descriptor -- echo "" | stack --no-terminal test + - stack --jobs 1 --no-terminal test