From 1ec552bcf12ec372128f81084671cad2f2e25c1d Mon Sep 17 00:00:00 2001 From: Clement Champetier Date: Tue, 7 Apr 2015 11:05:47 +0200 Subject: [PATCH] Add appveyor CI to build on windows --- appveyor.yml | 29 +++++++++++++++++++++++++++++ tools/appveyor.python.nosetests.bat | 18 ++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 appveyor.yml create mode 100644 tools/appveyor.python.nosetests.bat diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..ad08cd66 --- /dev/null +++ b/appveyor.yml @@ -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 + diff --git a/tools/appveyor.python.nosetests.bat b/tools/appveyor.python.nosetests.bat new file mode 100644 index 00000000..85b6c702 --- /dev/null +++ b/tools/appveyor.python.nosetests.bat @@ -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 +