Skip to content

Commit 37af8e4

Browse files
committed
Appveyor: update FFmpeg version to 4.* and use Python3 for unit tests
1 parent 1c95f19 commit 37af8e4

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ platform:
88
environment:
99
global:
1010
DEPENDENCY_NAME: ffmpeg
11-
DEPENDENCY_VERSION: 2.4.5
11+
DEPENDENCY_VERSION: 4.2.1
1212
DEPENDENCY_INSTALL_PATH: C:\ProgramData\install-dependency
1313
AVTRANSCODER_INSTALL_PATH: C:\projects\avtranscoder\build\install-avtranscoder
1414

@@ -25,10 +25,10 @@ install:
2525

2626
# Get the correct python version
2727
- ps: if($env:platform -eq 'x86') {
28-
$env:PYTHON = "C:\Python27";
28+
$env:PYTHON = "C:\Python35";
2929
}
3030
else {
31-
$env:PYTHON = "C:\Python27-x64";
31+
$env:PYTHON = "C:\Python35-x64";
3232
}
3333
# Prepend newly installed Python to the PATH of this build
3434
- cmd: set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
@@ -37,7 +37,7 @@ install:
3737
- "python --version"
3838
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
3939
# Upgrade to the latest version of pip to avoid it displaying warnings about it being out of date.
40-
- pip install --disable-pip-version-check --user --upgrade pip
40+
- "python -m pip install --disable-pip-version-check --user --upgrade pip"
4141

4242
# Install tests dependencies
4343
- pip install nose

tools/appveyor/build.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ MKDIR build
44
cd build
55

66
:: Configure
7-
call cmake.exe .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%AVTRANSCODER_INSTALL_PATH% -DCMAKE_PREFIX_PATH=%DEPENDENCY_INSTALL_PATH% -DAVTRANSCODER_PYTHON_VERSION_OF_BINDING=2.7
7+
call cmake.exe .. -G "NMake Makefiles" ^
8+
-DCMAKE_BUILD_TYPE=Release ^
9+
-DCMAKE_INSTALL_PREFIX=%AVTRANSCODER_INSTALL_PATH% ^
10+
-DCMAKE_PREFIX_PATH=%DEPENDENCY_INSTALL_PATH% ^
11+
-DPYTHON_LIBRARY="C:\Python35\libs\python35.lib" ^
12+
-DAVTRANSCODER_PYTHON_VERSION_OF_BINDING=3.5
813

914
:: Build & Install
1015
call nmake /F Makefile

tools/appveyor/python.nosetests.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set PWD=C:\projects\avtranscoder
44

55
:: Get avtranscoder library
6-
set PYTHONPATH=%AVTRANSCODER_INSTALL_PATH%\lib\python2.7\site-packages;%PYTHONPATH%
6+
set PYTHONPATH=%AVTRANSCODER_INSTALL_PATH%\lib\python3.5\site-packages;%PYTHONPATH%
77
set PATH=%DEPENDENCY_INSTALL_PATH%\bin;%AVTRANSCODER_INSTALL_PATH%\lib;%PATH%
88

99
:: Get avtranscoder profiles
@@ -22,7 +22,7 @@ set AVTRANSCODER_TEST_IMAGE_JPG_FILE=%PWD%\avTranscoder-data\image\BigBuckBunny\
2222

2323
:: Launch tests
2424
cd test\pyTest
25-
nosetests
25+
python -m nose
2626
cd ..\..
2727

2828
@echo off

tools/appveyor/win.install.deps.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ if %platform% == x86 set PLATFORM_VERSION=32
44
if %platform% == X64 set PLATFORM_VERSION=64
55

66
:: Installing ffmpeg dev (include + apps)
7-
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/dev/ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev.7z
8-
7z x ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev.7z
7+
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/dev/ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev.zip
8+
7z x ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev.zip
99

1010
:: Installing ffmpeg shared (libs)
11-
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/shared/ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-shared.7z
12-
7z x ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-shared.7z
11+
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/shared/ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-shared.zip
12+
7z x ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-shared.zip
1313

1414
move ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-shared\bin ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev
1515
move ffmpeg-%DEPENDENCY_VERSION%-win%PLATFORM_VERSION%-dev %DEPENDENCY_INSTALL_PATH%

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy