hledger/appveyor.yml

60 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

cache:
- "%LOCALAPPDATA%\\Programs\\stack"
- "c:\\project\\.stack-work"
- "c:\\sr" # -> appveyor.yml
# https://www.appveyor.com/docs/build-cache/#cleaning-up-cache
# method 1: browse ui, open inspector, $.ajax({url: 'https://ci.appveyor.com/api/projects/simonmichael/hledger/buildcache',type: 'DELETE'})
# method 2: curl -s -H "Authorization: Bearer $APPVEYOR_TOKEN" -H "Content-Type: application/json" -X DELETE https://ci.appveyor.com/api/projects/simonmichael/hledger/buildcache
build: off
# https://www.appveyor.com/docs/how-to/filtering-commits
# Add [skip ci] or [ci skip] anywhere to commit message and build wont
# 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).
#uncomment once to cache latest stack
before_test:
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
clone_folder: "c:\\project"
environment:
global:
STACK_ROOT: "c:\\sr"
# set in UI, can we set here ?
# APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
test_script:
- stack --local-bin-path . --install-ghc build --test --copy-bins hledger hledger-web hledger-api
# -j1 a temporary workaround for https://github.com/simonmichael/hledger/issues/424, https://github.com/commercialhaskell/stack/issues/2617, should be unnecessary with ghc 8.2.1+
# --bench benchmark doesn't run on windows yet
#- hledger-install/hledger-install.sh
#- make stacktest
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