Skip to content

Commit

Permalink
Add appveyor CI to build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Clement Champetier committed Apr 9, 2015
1 parent 05389cd commit 1ec552b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
29 changes: 29 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
os:
- Windows Server 2012 R2

platform:
- x86
- Any CPU

matrix:
fast_finish: true

init:
- call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %platform%

before_build:
- choco install -y ffmpeg swig

build_script:
- MKDIR build
- cd build
- call cmake.exe .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%~dp0 -DCMAKE_PREFIX_PATH="C:\ProgramData\chocolatey\lib\ffmpeg.2.5.2\tools\ffmpeg-2.5.2-win64-shared\bin"
- call nmake /F Makefile install

before_test:
- pip install nosetests

test_script:
- cd ..
- tools/appveyor.python.nosetests.bat

18 changes: 18 additions & 0 deletions tools/appveyor.python.nosetests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
set PWD=%~dp0

# Get avtranscoder library
set PYTHONPATH=%PWD%/build/dist/lib/python2.7.6/site-packages/:%PYTHONPATH%

# Get avtranscoder profiles
set AVPROFILES=%PWD%/build/dist/share/ressource

# Get assets
git clone https://github.com/avTranscoder/avTranscoder-data.git
set AVTRANSCODER_TEST_VIDEO_FILE=%PWD%/avTranscoder-data/video/BigBuckBunny/BigBuckBunny_480p_stereo.avi
set AVTRANSCODER_TEST_AUDIO_WAVE_FILE=%PWD%/avTranscoder-data/audio/frequenciesPerChannel.wav
set AVTRANSCODER_TEST_AUDIO_MOV_FILE=%PWD%/avTranscoder-data/video/BigBuckBunny/BigBuckBunny_1080p_5_1.mov

# Launch tests
cd test/pyTest
nosetests

0 comments on commit 1ec552b

Please sign in to comment.