.appveyor.yml 1.42 KB
Newer Older
1
2
3
4
5
6
7
8
9
image: Visual Studio 2015
configuration:
- Debug
- Release

platform:
- Win32
- x64

10
11
12
environment:
  sample_url: https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus

13
14
15
16
install:
- cd %APPVEYOR_BUILD_FOLDER%
- git clone -q https://github.com/xiph/opus.git ..\opus
- git clone -q https://github.com/xiph/ogg.git ..\ogg
17
18
- msbuild "..\opus\win32\VS2015\opus.vcxproj" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild "..\ogg\win32\VS2015\libogg_static.sln" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
19
20
21
22
23
24
25

build:
  project: win32\VS2015\opus-tools.sln
  parallel: true
  verbosity: minimal

after_build:
26
27
28
29
30
  - cd %APPVEYOR_BUILD_FOLDER%
  - copy /Y COPYING LICENSE
  - 7z a opus-tools.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe .\LICENSE
  - for %%a in (enc dec info) do curl -O https://mf4.xiph.org/jenkins/view/opus/job/opus-tools/ws/man/opus%%a.html
  - 7z a opus-tools.zip .\opusenc.html .\opusdec.html .\opusinfo.html
31

32
33
34
35
36
37
38
39
test_script:
  - cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
  - curl -o original.opus %SAMPLE_URL%
  - opusdec.exe original.opus decoded.wav
  - opusenc.exe decoded.wav encoded.opus
  - opusinfo.exe encoded.opus
  - appveyor PushArtifact encoded.opus

40
41
artifacts:
  - path: opus-tools.zip