appveyor: simplify and preserve paths
authorRicardo Constantino <wiiaboo@gmail.com>
Fri, 10 Feb 2017 00:58:55 +0000 (00:58 +0000)
committerRalph Giles <giles@thaumas.net>
Thu, 25 May 2017 05:10:06 +0000 (22:10 -0700)
Artifact with preserved paths is more useful for CI.

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

index b56b8d6..5afa2c1 100644 (file)
@@ -17,26 +17,14 @@ build:
   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