appveyor: get opus artifacts from appveyor master
authorRicardo Constantino <wiiaboo@gmail.com>
Tue, 21 Feb 2017 22:08:30 +0000 (22:08 +0000)
committerRalph Giles <giles@thaumas.net>
Thu, 25 May 2017 04:27:21 +0000 (21:27 -0700)
Saves a bit of time.

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

index 6d873b2..436d6cc 100644 (file)
@@ -9,13 +9,15 @@ platform:
 
 environment:
   sample_url: https://people.xiph.org/~giles/2012/opus/ehren-paper_lights-96.opus
+  opus_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opus/artifacts/opus.zip
 
 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
-- 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"
+  - cd %APPVEYOR_BUILD_FOLDER%
+  - 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUS_URL%'
+  - 7z x opus.zip -oopus-artifacts
+  - move /Y opus-artifacts ..\opus
+  - git clone -q https://github.com/xiph/ogg.git ..\ogg
+  - msbuild "..\ogg\win32\VS2015\libogg_static.sln" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
 
 build:
   project: win32\VS2015\opus-tools.sln