.appveyor.yml 2.3 KB

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