opusdec: Use literal format strings
[opus-tools.git] / .appveyor.yml
1 image: Visual Studio 2015
2 configuration:
3 - Debug
4 - Release
5
6 platform:
7 - Win32
8 - x64
9
10 environment:
11   sample_url: https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus
12   opus_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opus/artifacts/opus.zip
13   opusfile_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opusfile/artifacts/opusfile.zip
14   libopusenc_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/libopusenc/artifacts/libopusenc.zip
15
16 install:
17   - cd %APPVEYOR_BUILD_FOLDER%
18   - 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUS_URL%'
19   - 7z x opus.zip -oopus-artifacts
20   - 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUSFILE_URL%'
21   - 7z x opusfile.zip -oopus-artifacts
22   - 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %LIBOPUSENC_URL%'
23   - 7z x libopusenc.zip -oopus-artifacts
24   - move /Y opus-artifacts ..\opus
25   - git clone -q https://github.com/xiph/ogg.git ..\ogg
26   - msbuild "..\ogg\win32\VS2015\libogg_static.sln" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
27   - chocolatey install -y nasm
28   - set PATH=%PROGRAMFILES%\nasm;%PATH%
29   - git clone -q https://github.com/xiph/flac.git ..\flac
30   - xcopy /Y ..\ogg\include\ogg\*.h ..\flac\include\ogg\
31   - msbuild "..\flac\FLAC.sln" /t:libFLAC_static /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%;PlatformToolset=v140 /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
32
33 build:
34   project: win32\VS2015\opus-tools.sln
35   parallel: true
36   verbosity: minimal
37
38 after_build:
39   - cd %APPVEYOR_BUILD_FOLDER%
40   - copy /Y COPYING LICENSE
41   - 7z a opus-tools.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe .\LICENSE
42   - for %%a in (enc dec info) do curl -O https://mf4.xiph.org/jenkins/view/opus/job/opus-tools/ws/man/opus%%a.html
43   - 7z a opus-tools.zip .\opusenc.html .\opusdec.html .\opusinfo.html
44
45 test_script:
46   - cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
47   - curl -o original.opus %SAMPLE_URL%
48   - opusdec.exe original.opus decoded.wav
49   - opusenc.exe decoded.wav encoded.opus
50   - opusinfo.exe encoded.opus
51   - appveyor PushArtifact encoded.opus
52
53 artifacts:
54   - path: opus-tools.zip