2019-01-22 17:15:29 +01:00
version : 1.0 .{build}
branches :
only :
- master
- /.*appveyor.*/
- /\d*\.\d*\.\d*/
environment :
STACK_ROOT : C:\sr
STACK_VERSION : 1.9 .3
matrix :
2019-04-12 01:47:07 +02:00
- STACK_YAML : stack.yaml
2019-01-22 17:15:29 +01:00
- STACK_YAML : stack-lts-6.yaml
install :
- choco install -y haskell-stack --version %STACK_VERSION%
- stack setup > nul
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
cache :
- C:\sr -> '%STACK_YAML%'
- .stack-work -> '%STACK_YAML%'
- dhall\.stack-work -> '%STACK_YAML%'
- dhall-json\.stack-work -> '%STACK_YAML%'
- dhall-text\.stack-work -> '%STACK_YAML%'
- dhall-bash\.stack-work -> '%STACK_YAML%'
2019-04-12 01:47:07 +02:00
- dhall-lsp-server\.stack-work -> '%STACK_YAML%'
2019-01-22 17:15:29 +01:00
build_script :
- stack build
- stack install --local-bin-path bin
- if /I "%APPVEYOR_REPO_TAG%" EQU "true" (set DEPLOY_TAG=%APPVEYOR_REPO_TAG_NAME%) else (set DEPLOY_TAG=%APPVEYOR_REPO_COMMIT:~0,5%)
- set DEPLOY_SUFFIX=%DEPLOY_TAG%-x86_64-windows.zip
- 7z a "bin\dhall-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall.exe"
2019-02-16 00:09:35 +01:00
- 7z a "bin\dhall-json-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall-to-json.exe"
- 7z a "bin\dhall-json-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall-to-yaml.exe"
2019-01-22 17:15:29 +01:00
- 7z a "bin\dhall-text-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall-to-text.exe"
- 7z a "bin\dhall-bash-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall-to-bash.exe"
2019-04-12 01:47:07 +02:00
# dhall-lsp-server can't be built with lts-6
- if exist "%APPVEYOR_BUILD_FOLDER%\bin\dhall-lsp-server.exe" ( 7z a "bin\dhall-lsp-server-%DEPLOY_SUFFIX%" "%APPVEYOR_BUILD_FOLDER%\bin\dhall-lsp-server.exe" )
2019-01-22 17:15:29 +01:00
for :
-
matrix :
except :
# stack is not able to build test dependencies with lts-6
- STACK_YAML : stack-lts-6.yaml
test_script :
- stack test dhall:tasty
- stack test dhall-json
- stack test dhall-text
- stack test dhall-bash
2019-04-12 01:47:07 +02:00
- stack test dhall-lsp-server
2019-01-22 17:15:29 +01:00
artifacts :
- path : bin\dhall-%DEPLOY_SUFFIX%
name : dhall
- path : bin\dhall-json-%DEPLOY_SUFFIX%
name : dhall-json
- path : bin\dhall-text-%DEPLOY_SUFFIX%
name : dhall-text
- path : bin\dhall-bash-%DEPLOY_SUFFIX%
name : dhall-bash
2019-04-12 01:47:07 +02:00
- path : bin\dhall-lsp-server-%DEPLOY_SUFFIX%
name : dhall-lsp-server
2019-01-22 17:15:29 +01:00
deploy :
- provider : GitHub
auth_token :
secure : Gs/tiz6Jtg/Zjd4zGHDhuSv4Y9a+zJ574LWwzOe2bvZNGX/M8XupkxdGmBpDlnOf
2019-04-12 01:47:07 +02:00
artifact : dhall, dhall-json, dhall-text, dhall-bash, dhall-lsp-server
2019-01-22 17:15:29 +01:00
on :
APPVEYOR_REPO_TAG : true
STACK_YAML : stack.yaml