mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Clean up azure build scripts.
Former-commit-id: 0fb24bf510f09cb5a757c3f78e901f92d84d3531
This commit is contained in:
parent
3a7016f093
commit
b93c35af63
3 changed files with 7 additions and 46 deletions
|
|
@ -13,27 +13,20 @@ jobs:
|
|||
stack-lts-12:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack-lts-12.yaml
|
||||
ARGS: --pedantic
|
||||
stack-lts-11:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack-lts-11.yaml
|
||||
ARGS: --pedantic
|
||||
stack-nightly:
|
||||
BUILD: stack
|
||||
ARGS: --resolver nightly
|
||||
maxParallel: 6
|
||||
steps:
|
||||
- task: CacheBeta@0
|
||||
- task: Cache@2
|
||||
inputs:
|
||||
key: ${{ parameters.name }} | ${{ parameters.vmImage }} | $(STACK_YAML) | stack-root | $(Agent.OS) | version4
|
||||
path: $(STACK_ROOT)
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
displayName: Cache stack root
|
||||
- bash: |
|
||||
echo REMOVE ME ONCE THIS IS FIXED https://github.com/microsoft/azure-pipelines-tasks/issues/10841
|
||||
cd "$(STACK_ROOT)"
|
||||
if [ -f "executable.txt" ]; then chmod +x $(cat executable.txt); fi
|
||||
condition: and(succeeded(), ne(variables['CACHE_RESTORED'], 'false'))
|
||||
- script: |
|
||||
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
|
||||
sudo apt-get update
|
||||
|
|
@ -116,11 +109,3 @@ jobs:
|
|||
env:
|
||||
OS_NAME: ${{ parameters.os }}
|
||||
displayName: 'Installation ${{parameters.os}} & Test'
|
||||
- bash: |
|
||||
echo REMOVE ME ONCE THIS IS FIXED https://github.com/microsoft/azure-pipelines-tasks/issues/10841
|
||||
cd "$(STACK_ROOT)"
|
||||
rm executable.txt
|
||||
find . -perm +111 >> executable.txt
|
||||
find . -executable >> executable.txt
|
||||
cat executable.txt
|
||||
displayName: Save list of files with executable bit set
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ jobs:
|
|||
stack:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack.yaml
|
||||
ARGS: --pedantic
|
||||
stack-lts-12:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack-lts-12.yaml
|
||||
|
|
@ -29,7 +30,7 @@ jobs:
|
|||
export PATH=$HOME/.local/bin:$PATH
|
||||
stack --install-ghc test $ARGS --only-dependencies
|
||||
stack ./examples/counter.hs check
|
||||
stack test $ARGS --pedantic
|
||||
stack test $ARGS
|
||||
env:
|
||||
OS_NAME: ${{ parameters.os }}
|
||||
displayName: 'Installation ${{parameters.os}} & Test'
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ jobs:
|
|||
stack:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack.yaml
|
||||
ARGS: --pedantic
|
||||
stack-lts-12:
|
||||
BUILD: stack
|
||||
STACK_YAML: stack-lts-12.yaml
|
||||
|
|
@ -17,44 +18,18 @@ jobs:
|
|||
STACK_YAML: stack-lts-11.yaml
|
||||
maxParallel: 6
|
||||
steps:
|
||||
- task: CacheBeta@0
|
||||
- task: Cache@2
|
||||
inputs:
|
||||
key: ${{ parameters.name }} | ${{ parameters.vmImage }} | $(STACK_YAML) | stack-root | $(Agent.OS)
|
||||
path: $(STACK_ROOT)
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
displayName: Cache stack root
|
||||
- bash: |
|
||||
echo REMOVE ME ONCE THIS IS FIXED https://github.com/microsoft/azure-pipelines-tasks/issues/10841
|
||||
cd "$(STACK_ROOT)"
|
||||
if [ -f "executable.txt" ]; then chmod +x $(cat executable.txt); fi
|
||||
condition: and(succeeded(), ne(variables['CACHE_RESTORED'], 'false'))
|
||||
- bash: |
|
||||
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
|
||||
curl -sSkL https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-4.2.1-win64-static.zip -o ffmpeg.zip
|
||||
unzip ffmpeg.zip
|
||||
cp ffmpeg-4.2.1-win64-static/bin/* /usr/bin/
|
||||
|
||||
#curl -sSkL http://mirror.ctan.org/systems/texlive/tlnet/install-tl-windows.exe -o install-tl-windows.exe
|
||||
#./install-tl-windows.exe -gui text
|
||||
|
||||
#curl -sSkL https://miktex.org/download/win/miktexsetup-x64.zip -o miktexsetup-x64.zip
|
||||
#unzip miktexsetup-x64.zip
|
||||
#./miktexsetup.exe --verbose --local-package-repository=miktex-repository --package-set=complete download
|
||||
#./miktexsetup.exe --verbose --local-package-repository=miktex-repository --shared --user-config="MiKTeX\2.9" --user-data="MiKTeX\2.9" --user-install="MiKTeX\2.9" --print-info-only install
|
||||
|
||||
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
|
||||
unzip -o /usr/bin/stack.zip -d /usr/bin/
|
||||
stack --install-ghc $ARGS test --only-dependencies
|
||||
stack --install-ghc test $ARGS --only-dependencies
|
||||
stack ./examples/counter.hs check
|
||||
stack $ARGS test --pedantic
|
||||
stack test $ARGS
|
||||
env:
|
||||
OS_NAME: ${{ parameters.os }}
|
||||
displayName: 'Installation ${{parameters.os}} & Test'
|
||||
- bash: |
|
||||
echo REMOVE ME ONCE THIS IS FIXED https://github.com/microsoft/azure-pipelines-tasks/issues/10841
|
||||
cd "$(STACK_ROOT)"
|
||||
rm executable.txt
|
||||
find . -perm +111 >> executable.txt
|
||||
find . -executable >> executable.txt
|
||||
cat executable.txt
|
||||
displayName: Save list of files with executable bit set
|
||||
|
|
|
|||
Loading…
Reference in a new issue