tools: appveyor: update and re-enable
[skip travis]
This commit is contained in:
parent
de56ee0b93
commit
f6e64a887f
@ -1,33 +1,40 @@
|
|||||||
cache:
|
# https://www.appveyor.com/docs/appveyor-yml
|
||||||
- "%LOCALAPPDATA%\\Programs\\stack"
|
# https://www.appveyor.com/docs/build-configuration
|
||||||
- "c:\\project\\.stack-work"
|
# https://www.appveyor.com/docs/branches
|
||||||
- "c:\\sr" # -> appveyor.yml
|
# https://www.appveyor.com/docs/how-to/filtering-commits:
|
||||||
# https://www.appveyor.com/docs/build-cache/#cleaning-up-cache
|
# [skip ci] or [ci skip] anywhere in commit message, or [skip appveyor] only
|
||||||
# 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
|
#build: off
|
||||||
|
|
||||||
# https://www.appveyor.com/docs/how-to/filtering-commits
|
# shorter file paths have been a known workaround in the past
|
||||||
# Add [skip ci] or [ci skip] anywhere to commit message and build won’t
|
clone_folder: "c:\\pr"
|
||||||
# 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:
|
environment:
|
||||||
global:
|
global:
|
||||||
STACK_ROOT: "c:\\sr"
|
STACK_ROOT: "c:\\sr"
|
||||||
# set in UI, can we set here ?
|
# set in UI, can we set here ?
|
||||||
# APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
|
# APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
|
||||||
|
|
||||||
|
#version: '1.9.99.{build}'
|
||||||
|
|
||||||
|
# to clean cache: 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
|
||||||
|
cache:
|
||||||
|
- "%LOCALAPPDATA%\\Programs\\stack"
|
||||||
|
- "c:\\sr"
|
||||||
|
- "c:\\pr\\.stack-work"
|
||||||
|
#- "c:\\pr\\hledger-lib\\.stack-work"
|
||||||
|
#- "c:\\pr\\hledger\\.stack-work"
|
||||||
|
#- "c:\\pr\\hledger-web\\.stack-work"
|
||||||
|
#- "c:\\pr\\hledger-api\\.stack-work"
|
||||||
|
|
||||||
|
#before_test:
|
||||||
|
install:
|
||||||
|
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
|
||||||
|
- 7z x stack.zip stack.exe
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- stack --local-bin-path . --install-ghc build --test --copy-bins hledger hledger-web hledger-api
|
- stack build --test --copy-bins --local-bin-path=. 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+
|
# -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
|
# --bench benchmark doesn't run on windows yet
|
||||||
#- hledger-install/hledger-install.sh
|
#- hledger-install/hledger-install.sh
|
||||||
@ -35,17 +42,18 @@ test_script:
|
|||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: hledger.exe
|
- path: hledger.exe
|
||||||
- path: hledger-web.exe
|
#- path: hledger-web.exe
|
||||||
- path: hledger-api.exe
|
#- path: hledger-api.exe
|
||||||
|
|
||||||
#deployment stuff for later
|
|
||||||
|
|
||||||
|
# deployment stuff for later
|
||||||
|
# https://silky.github.io/posts/2016-01-05-build-windows-haskell-app-with-stack-and-appveyor.html
|
||||||
#
|
#
|
||||||
#- cmd: for /f %%i in ('.\\hledger --version') do set HLEDGER_VERSION=%%i
|
#- 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-web --version') do set HLEDGER_WEB_VERSION=%%i
|
||||||
#- cmd: for /f %%i in ('.\\hledger-api --version') do set HLEDGER_API_VERSION=%%i
|
#- cmd: for /f %%i in ('.\\hledger-api --version') do set HLEDGER_API_VERSION=%%i
|
||||||
#
|
#
|
||||||
#skip_tags: true
|
|
||||||
#
|
|
||||||
#deploy:
|
#deploy:
|
||||||
# - provider: GitHub
|
# - provider: GitHub
|
||||||
# tag: 'hledger-$(HLEDGER_VERSION)'
|
# tag: 'hledger-$(HLEDGER_VERSION)'
|
||||||
@ -55,5 +63,3 @@ artifacts:
|
|||||||
# artifact: hledger.exe
|
# artifact: hledger.exe
|
||||||
# on:
|
# on:
|
||||||
# branch: master
|
# branch: master
|
||||||
|
|
||||||
# cf https://silky.github.io/posts/2016-01-05-build-windows-haskell-app-with-stack-and-appveyor.html
|
|
||||||
Loading…
Reference in New Issue
Block a user