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 13, 2015
1 parent 05389cd commit d1b2fdd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
30 changes: 30 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 swig
- tools/appveyor.win.install.deps.bat

build_script:
- MKDIR build
- cd build
- call cmake.exe .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%~dp0 -DCMAKE_PREFIX_PATH="%~dp0\ffmpeg-2.2.11-win32-dev"
- 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 d1b2fdd

Please sign in to comment.