mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
f7fbb990c2
With the latest change in the package.yaml file, stack does skip building hledger-ui on windows as intended, however this causes all-package stack commands to exit with an error. So yes, on appveyor we must explicitly name the packages to build.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
cache:
|
|
- "c:\\sr -> appveyor.yml"
|
|
- "c:\\project\\.stack-work"
|
|
- "%LOCALAPPDATA%\\Programs\\stack"
|
|
|
|
build: off
|
|
|
|
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"
|
|
|
|
test_script:
|
|
- echo "" | stack --no-terminal --install-ghc test hledger hledger-web hledger-api
|
|
- stack --local-bin-path . install hledger hledger-web hledger-api
|
|
|
|
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
|