More fixes for IESG
[opus.git] / .appveyor.yml
index b56b8d6..a0f4a77 100644 (file)
@@ -11,32 +11,27 @@ platform:
 - Win32
 - x64
 
+environment:
+  api_key:
+    secure: kR3Ac0NjGwFnTmXdFrR8d6VXjdk5F7L4F/BilC4nvaM=
+
 build:
   project: win32\VS2015\opus.sln
   parallel: true
   verbosity: minimal
 
 after_build:
-- cmd: >-
-    mkdir %APPVEYOR_BUILD_FOLDER%\artifacts
-
-    cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
-
-    for %%a in (lib dll exp pdb) do if exist opus.%%a copy opus.%%a %APPVEYOR_BUILD_FOLDER%\artifacts\
-
-    cd %APPVEYOR_BUILD_FOLDER%
-
-    7z a opus.zip .\artifacts\* include\*.h
+- cd %APPVEYOR_BUILD_FOLDER%
+- 7z a opus.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\opus.??? include\*.h
 
 test_script:
-- cmd: >-
-    cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
-
-    test_opus_api.exe
-
-    test_opus_decode.exe
-
-    test_opus_encode.exe
+- cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
+- test_opus_api.exe
+- test_opus_decode.exe
+- test_opus_encode.exe
 
 artifacts:
 - path: opus.zip
+
+on_success:
+- ps: if ($env:api_key -and "$env:configuration/$env:platform" -eq "ReleaseDLL_fixed/x64") { Start-AppveyorBuild -ApiKey $env:api_key -ProjectSlug 'opus-tools' }