appveyor: run a basic test on the compiled binaries
authorRicardo Constantino <wiiaboo@gmail.com>
Tue, 21 Feb 2017 22:10:03 +0000 (22:10 +0000)
committerRalph Giles <giles@thaumas.net>
Thu, 25 May 2017 04:27:09 +0000 (21:27 -0700)
Pack resulting artifact from opusenc test for debugging.

Signed-off-by: Ralph Giles <giles@thaumas.net>
.appveyor.yml

index 9d36efd..6d873b2 100644 (file)
@@ -7,6 +7,9 @@ platform:
 - Win32
 - x64
 
+environment:
+  sample_url: https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus
+
 install:
 - cd %APPVEYOR_BUILD_FOLDER%
 - git clone -q https://github.com/xiph/opus.git ..\opus
@@ -26,6 +29,13 @@ after_build:
   - 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
 
+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
+
 artifacts:
   - path: opus-tools.zip
-