Improve test environment. (#17)

Install ffmpeg on linux, mac and windows.

Former-commit-id: 94b989b621265c1454793d129d9ca3321dfa513a
This commit is contained in:
David Himmelstrup 2019-09-24 19:43:06 +08:00 committed by GitHub
commit 39b46248a6
6 changed files with 55 additions and 8 deletions

View file

@ -30,6 +30,11 @@ jobs:
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
sudo apt-get install ffmpeg
#sudo apt-get install texlive texlive-latex-base texlive-latex-extra texlive-fonts-extra texlive-science texlive-xetex texlive-latex-recommended texlive-lang-english texlive-lang-chinese
sudo apt-get install povray
mkdir -p ~/.local/bin
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
case "$BUILD" in

View file

@ -29,6 +29,26 @@ jobs:
if [ -f "executable.txt" ]; then chmod +x $(cat executable.txt); fi
condition: and(succeeded(), ne(variables['CACHE_RESTORED'], 'false'))
- script: |
#brew cask install basictex
#export PATH="/Library/TeX/texbin/:$PATH"
#sudo tlmgr update --self
#sudo tlmgr install standalone
#sudo tlmgr install preview
#sudo tlmgr install dvisvgm
#sudo tlmgr install scheme-full
#sudo tlmgr install amsmath
#sudo tlmgr install physics
#sudo tlmgr install doublestroke
#sudo tlmgr install calligra
#sudo tlmgr install fundus-calligra
#sudo tlmgr install relsize
#sudo tlmgr install wasysym
#sudo tlmgr install cjk
#sudo tlmgr install ctex
#sudo tlmgr install zhnumber
#xelatex -interaction=nonstopmode test.tex
brew install ffmpeg
brew install povray
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root;
mkdir -p ~/.local/bin
curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;

View file

@ -30,6 +30,18 @@ jobs:
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