reanimate/azure-pipelines.yml
David Himmelstrup 0bc085a47f azure: attempt to install xelatex
Former-commit-id: fe373c50714c1c54880ac9b090ffb4218037cc15
2019-09-10 12:01:56 +08:00

49 lines
1.5 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
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: ghc | $(Agent.OS) | stack.yaml | version4
path: $(STACK_ROOT)
displayName: Cache ghc
- script: |
ghc --version
ghc-pkg list
pwd
sudo apt-get update
sudo apt-get install latex dvisvgm texlive-latex-base texlive-latex-extra texlive-math-extra texlive-lang-chinese -y
sudo apt-get install xelatex -y
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 --fast
./examples/counter.hs check
stack path
displayName: 'Build reanimate'