Skip to content

Commit

Permalink
add build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Sep 18, 2016
1 parent f8d5f91 commit 02a06ac
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ environment:
GHC_OPTIONS: "-O0 -Werror"

STACK_ROOT: "c:\\sr"
#PATH: "c:\\sr"
LOCAL_BIN: "%APPDATA%\\local\\bin"
PATH: "%PATH%;%APPDATA%\\local\\bin"
CABAL_REINIT_CONFIG: "y"

#cache:
#- "c:\\sr" # stack root
#- "%APPDATA%\\local"
#- "%APPDATA%\\cabal"
#- "%APPDATA%\\ghc"
cache:
- "%STACK_ROOT%" # stack root
- "%LOCALAPPDATA%\\Programs\\stack" # ghc & msys
- "%LOCAL_BIN%"
- "%APPDATA%\\cabal"
- "%APPDATA%\\ghc"

build: off

before_test:
- mkdir %APPDATA%\\local\\bin
- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe && move stack.exe %APPDATA%\\local\\bin
- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
- curl -sSkL -opackage-sanity.sh https://raw.githubusercontent.com/harendra-kumar/package-sanity/windows/package-sanity.sh

test_script:
Expand Down

0 comments on commit 02a06ac

Please sign in to comment.