reanimate/azure-pipelines.yml
David Himmelstrup 5210372407 Enable testing on azure-pipelines.
Former-commit-id: 50f2d5bfffb467575fb1df5f84fd6bec5ad2a38d
2019-09-09 19:19:40 +08:00

30 lines
908 B
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
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
stack test
- job: linux
pool:
vmImage: 'ubuntu-latest'
steps:
- 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
stack test
displayName: 'Build reanimate'