Skip to content

Commit 2f911ea

Browse files
Merge pull request #168 from cchampet/build_appveyor
Add appveyor CI to build on windows
2 parents 698e8c6 + 566d555 commit 2f911ea

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed

appveyor.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
os:
2+
- Windows Server 2012 R2
3+
4+
platform:
5+
- x86
6+
# - x64
7+
8+
matrix:
9+
fast_finish: true
10+
11+
init:
12+
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%
13+
14+
before_build:
15+
- choco install -y swig
16+
- tools/appveyor.win.install.deps.bat
17+
18+
build_script:
19+
- tools/appveyor.build.bat
20+
21+
before_test:
22+
- set PATH=C:\Python27\scripts;%PATH%
23+
- pip install nose
24+
25+
test_script:
26+
- cd ..
27+
- tools/appveyor.python.nosetests.bat
28+
29+
on_failure:
30+
- type "C:\projects\avtranscoder\build\CMakeFiles\CMakeOutput.log"
31+
32+
#on_success:
33+
# - create archives
34+
35+
#artifacts:
36+
# - path: C:\ProgramData\ffmpeg-2.2.11
37+
# name: ffmpeg
38+
# type: zip
39+
40+
# - path: C:\projects\avtranscoder\build
41+
# name: avtranscoder
42+
# type: zip
43+
44+
#deploy:
45+
# - provider: GitHub
46+
# artifact: ffmpeg,avtranscoder
47+
# auth_token:
48+
# secure: <your encrypted token>
49+
# on:
50+
# branch: master
51+
# appveyor_repo_tag: true

tools/appveyor.build.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo on
2+
3+
set FFMPEG_VERSION=2.2.11
4+
5+
MKDIR build
6+
cd build
7+
8+
:: Configure
9+
call cmake.exe .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD% -DCMAKE_PREFIX_PATH=C:\ProgramData\ffmpeg-%FFMPEG_VERSION% -DAVTRANSCODER_PYTHON_VERSION_OF_BINDING=2.7
10+
11+
:: Build & Install
12+
call nmake /F Makefile
13+
call nmake /F Makefile install
14+
15+
@echo off

tools/appveyor.python.nosetests.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo on
2+
3+
set PWD=C:\projects\avtranscoder
4+
set FFMPEG_VERSION=2.2.11
5+
6+
:: Get avtranscoder library
7+
set PYTHONPATH=%PWD%\build\lib\python2.7\site-packages;%PYTHONPATH%
8+
set PATH=C:\ProgramData\ffmpeg-%FFMPEG_VERSION%\bin;%PWD%\build\lib;%PATH%
9+
10+
:: Get avtranscoder profiles
11+
set AVPROFILES=%PWD%\build\share\avprofiles
12+
13+
:: Get assets
14+
git clone https://github.com/avTranscoder/avTranscoder-data.git
15+
set AVTRANSCODER_TEST_VIDEO_FILE=%PWD%\avTranscoder-data/video\BigBuckBunny\BigBuckBunny_480p_stereo.avi
16+
set AVTRANSCODER_TEST_AUDIO_WAVE_FILE=%PWD%\avTranscoder-data\audio\frequenciesPerChannel.wav
17+
set AVTRANSCODER_TEST_AUDIO_MOV_FILE=%PWD%\avTranscoder-data\video\BigBuckBunny\BigBuckBunny_1080p_5_1.mov
18+
19+
:: Launch tests
20+
cd test\pyTest
21+
nosetests
22+
23+
@echo off

tools/appveyor.win.install.deps.bat

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo on
2+
3+
set FFMPEG_VERSION=2.2.11
4+
5+
if %platform% == x86 set PLATFORM_VERSION=32
6+
if %platform% == X64 set PLATFORM_VERSION=64
7+
8+
:: Installing ffmpeg dev (include + apps)
9+
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/dev/ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-dev.7z
10+
7z x ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-dev.7z
11+
12+
:: Installing ffmpeg shared (libs)
13+
curl -kLO http://ffmpeg.zeranoe.com/builds/win%PLATFORM_VERSION%/shared/ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-shared.7z
14+
7z x ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-shared.7z
15+
16+
move ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-shared\bin ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-dev
17+
move ffmpeg-%FFMPEG_VERSION%-win%PLATFORM_VERSION%-dev C:\ProgramData\ffmpeg-%FFMPEG_VERSION%
18+
19+
@echo off

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