mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Fix Azure issues
https://developercommunity.visualstudio.com/content/problem/598264/known-issue-azure-pipelines-images-missing-sqlite3.html
This commit is contained in:
parent
5993009fbc
commit
8e2a2b2ae7
1 changed files with 41 additions and 8 deletions
|
@ -24,15 +24,48 @@ jobs:
|
||||||
maxParallel: 4
|
maxParallel: 4
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- script: |
|
||||||
|
# Make sure all packages are pulled from latest
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
# Fail out if any setups fail
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Delete old Pythons
|
||||||
|
rm -rf $AGENT_TOOLSDIRECTORY/Python/2.7.16
|
||||||
|
rm -rf $AGENT_TOOLSDIRECTORY/Python/3.5.7
|
||||||
|
rm -rf $AGENT_TOOLSDIRECTORY/Python/3.7.3
|
||||||
|
|
||||||
|
# Download new Pythons
|
||||||
|
azcopy --recursive \
|
||||||
|
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/2.7.15 \
|
||||||
|
--destination $AGENT_TOOLSDIRECTORY/Python/2.7.15
|
||||||
|
|
||||||
|
azcopy --recursive \
|
||||||
|
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.5.5 \
|
||||||
|
--destination $AGENT_TOOLSDIRECTORY/Python/3.5.5
|
||||||
|
|
||||||
|
azcopy --recursive \
|
||||||
|
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.7.2 \
|
||||||
|
--destination $AGENT_TOOLSDIRECTORY/Python/3.7.2
|
||||||
|
|
||||||
|
# Install new Pythons
|
||||||
|
original_directory=$PWD
|
||||||
|
setups=$(find $AGENT_TOOLSDIRECTORY/Python -name setup.sh)
|
||||||
|
for setup in $setups; do
|
||||||
|
chmod +x $setup;
|
||||||
|
cd $(dirname $setup);
|
||||||
|
./$(basename $setup);
|
||||||
|
cd $original_directory;
|
||||||
|
done;
|
||||||
|
displayName: 'Workaround: update apt and roll back Python versions'
|
||||||
|
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '$(python.version)'
|
versionSpec: '$(python.version)'
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
|
|
||||||
- script: |
|
- script: python -m pip install --upgrade pip
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install python${python.version}
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: sudo apt-get install ffmpeg
|
- script: sudo apt-get install ffmpeg
|
||||||
|
@ -44,10 +77,10 @@ jobs:
|
||||||
displayName: 'pytest'
|
displayName: 'pytest'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
rm -rf .git
|
rm -rf .git
|
||||||
python cleanup.py
|
python cleanup.py
|
||||||
python TorrentToMedia.py
|
python TorrentToMedia.py
|
||||||
python nzbToMedia.py
|
python nzbToMedia.py
|
||||||
displayName: 'Test source install cleanup'
|
displayName: 'Test source install cleanup'
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue