Update azure-pipelines-ci.yml for Azure Pipelines

This commit is contained in:
Pascal Vizeli 2019-06-08 11:05:27 +02:00
parent 3ac8c6d1fe
commit 9924dd7aca

View file

@ -23,20 +23,23 @@ jobs:
matrix: matrix:
Python35: Python35:
python.version: '3.5' python.version: '3.5'
python.container: 'python:3.5'
Python36: Python36:
python.version: '3.6' python.version: '3.6'
python.container: 'python:3.6'
Python37: Python37:
python.version: '3.7' python.version: '3.7'
python.container: 'python:3.7'
container: $[ variables['python.container'] ]
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
displayName: 'Use Python $(python.version)' displayName: 'Use Python $(python.version)'
inputs: inputs:
versionSpec: '$(python.version)' versionSpec: '$(python.version)'
- script: | - script: |
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt-get update sudo apt-get update
sudo apt-get install -y --no-install-recommends \ sudo apt-get install -y --no-install-recommends \
libudev libsqlite3 libavformat libavcodec libavdevice libavutil libswscale libswresample libavfilter libudev libavformat libavcodec libavdevice libavutil libswscale libswresample libavfilter
echo "$(python.version)" > .cache echo "$(python.version)" > .cache
displayName: 'Set up docker prerequisite requirement' displayName: 'Set up docker prerequisite requirement'
@ -51,7 +54,7 @@ jobs:
- script: | - script: |
# Install build env # Install build env
sudo apt-get install -y --no-install-recommends \ sudo apt-get install -y --no-install-recommends \
libudev-dev libsqlite3-dev libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev libudev-dev libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev
# Setup venv # Setup venv
python -m venv venv python -m venv venv