reanimate/azure-pipelines.yml
David Himmelstrup 9d6df6cfff Restore simple azure pipeline build.
Former-commit-id: 6d41f93abd9203d58b3899f474b756b5e72ed59a
2019-09-11 18:24:46 +08:00

47 lines
1.4 KiB
YAML

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
variables:
STACK_ROOT: $(Pipeline.Workspace)/.stack
STACK_WORK: .stack-work
jobs:
#- job: macOS
# pool:
# vmImage: 'macOS-10.13'
# steps:
# - script: |
# mkdir -p ~/.local/bin
# export PATH=$HOME/.local/bin:$PATH
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
# stack build
- job: linux
pool:
vmImage: 'ubuntu-latest'
steps:
#- task: CacheBeta@0
# inputs:
# key: stack | $(Agent.OS)
# path: $(HOME)/.local/bin
# displayName: Cache stack
# - task: CacheBeta@0
# inputs:
# key: stack-root | $(Agent.OS) | stack.yaml | version2
# path: $(STACK_ROOT)
# displayName: Cache stack root
# - task: CacheBeta@0
# inputs:
# key: stack-work | $(Agent.OS) | stack.yaml | version4
# path: $(Build.SourcesDirectory)/$(STACK_WORK)
# displayName: Cache stack work
- script: |
mkdir -p ~/.local/bin
export PATH=$HOME/.local/bin:$PATH
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
stack build
displayName: 'Build reanimate'