2016-07-22 21:22:16 +03:00
|
|
|
|
cache:
|
2017-07-11 06:33:14 +03:00
|
|
|
|
- "%LOCALAPPDATA%\\Programs\\stack"
|
2016-07-22 22:37:52 +03:00
|
|
|
|
- "c:\\project\\.stack-work"
|
2017-07-11 06:51:24 +03:00
|
|
|
|
- "c:\\sr" # -> appveyor.yml
|
|
|
|
|
# to force cache deletion: browse ui, open inspector,
|
|
|
|
|
# $.ajax({url: 'https://ci.appveyor.com/api/projects/simonmichael/hledger/buildcache',type: 'DELETE'})
|
2016-07-22 21:22:16 +03:00
|
|
|
|
|
|
|
|
|
build: off
|
|
|
|
|
|
2017-07-11 06:59:37 +03:00
|
|
|
|
# https://www.appveyor.com/docs/how-to/filtering-commits
|
|
|
|
|
# Add [skip ci] or [ci skip] anywhere to commit message and build won’t
|
|
|
|
|
# be triggered by AppVeyor for that commit. Or explicitly skip AppVeyor only
|
|
|
|
|
# with [skip appveyor] and still allow any other CI to build the commit
|
|
|
|
|
# (eg. Travis CI).
|
|
|
|
|
|
2017-07-11 06:33:14 +03:00
|
|
|
|
#uncomment once to cache latest stack
|
2017-07-12 08:59:53 +03:00
|
|
|
|
before_test:
|
|
|
|
|
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
|
|
|
|
|
- 7z x stack.zip stack.exe
|
2016-07-22 21:22:16 +03:00
|
|
|
|
|
|
|
|
|
clone_folder: "c:\\project"
|
|
|
|
|
environment:
|
|
|
|
|
global:
|
|
|
|
|
STACK_ROOT: "c:\\sr"
|
2017-07-11 06:33:14 +03:00
|
|
|
|
# set in UI, can we set here ?
|
|
|
|
|
# APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
|
2016-07-22 21:22:16 +03:00
|
|
|
|
|
|
|
|
|
test_script:
|
2017-07-11 06:01:06 +03:00
|
|
|
|
- echo "" | stack --no-terminal --install-ghc test -j1 hledger hledger-web hledger-api
|
2017-01-16 19:57:38 +03:00
|
|
|
|
- stack --local-bin-path . -j1 install hledger hledger-web hledger-api
|
2017-07-11 06:01:06 +03:00
|
|
|
|
# -j1 is temporary, attempting to work around
|
|
|
|
|
# https://github.com/simonmichael/hledger/issues/424
|
|
|
|
|
# https://github.com/commercialhaskell/stack/issues/2617
|
2016-07-22 22:57:28 +03:00
|
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
|
- path: hledger.exe
|
|
|
|
|
- path: hledger-web.exe
|
|
|
|
|
- path: hledger-api.exe
|
|
|
|
|
|
|
|
|
|
#deployment stuff for later
|
|
|
|
|
#
|
|
|
|
|
#- cmd: for /f %%i in ('.\\hledger --version') do set HLEDGER_VERSION=%%i
|
|
|
|
|
#- cmd: for /f %%i in ('.\\hledger-web --version') do set HLEDGER_WEB_VERSION=%%i
|
|
|
|
|
#- cmd: for /f %%i in ('.\\hledger-api --version') do set HLEDGER_API_VERSION=%%i
|
|
|
|
|
#
|
|
|
|
|
#skip_tags: true
|
|
|
|
|
#
|
|
|
|
|
#deploy:
|
|
|
|
|
# - provider: GitHub
|
|
|
|
|
# tag: 'hledger-$(HLEDGER_VERSION)'
|
|
|
|
|
# release: 'Release hledger-$(HLEDGER_VERSION)'
|
|
|
|
|
# auth_token:
|
|
|
|
|
# secure: #FZXhwa1ucQwyFtswv/XNUJkclAxoz4YGGu69dSOEEkwG7Rlh/Gho66SJtOUJ57kN
|
|
|
|
|
# artifact: hledger.exe
|
|
|
|
|
# on:
|
|
|
|
|
# branch: master
|
|
|
|
|
|
|
|
|
|
# cf https://silky.github.io/posts/2016-01-05-build-windows-haskell-app-with-stack-and-appveyor.html
|