From 02e01b09fa1dc0967bba6580ab369184d68af8b5 Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holger@nahrstaedt.de> Date: Fri, 4 May 2018 22:24:13 +0200 Subject: [PATCH] fix appveyor --- appveyor.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index fed1b366..88270c11 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,5 @@ # Based on https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml +version: '{build}' environment: global: @@ -68,18 +69,28 @@ after_test: - pyinstaller beempy-onedir.spec - copy /Y C:\OpenSSL-Win64\bin\libeay32.dll dist\beempy - copy /Y C:\OpenSSL-Win64\bin\ssleay32.dll dist\beempy - - 7z a dist\beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy - - 7z a -m0=LZMA2 -mx9 dist\beempy.7z %APPVEYOR_BUILD_FOLDER%\dist\beempy + - 7z a beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy + - 7z a -m0=LZMA2 -mx9 $env:BUILD %APPVEYOR_BUILD_FOLDER%\dist\beempy #- "%CMD_IN_ENV% python setup.py bdist_wininst" #- "%CMD_IN_ENV% python setup.py bdist_msi" - ps: | # generate sha256 hashes - (get-filehash dist\beempy.7z -algorithm SHA256).Hash | out-file "dist\beempy.7z.sha256"-encoding ascii - (get-filehash dist\beempy.zip -algorithm SHA256).Hash | out-file "dist\beempy.zip.sha256" -encoding ascii + (get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii + (get-filehash beempy.zip -algorithm SHA256).Hash | out-file "beempy.zip.sha256" -encoding ascii - ps: "ls dist" artifacts: # Archive the generated packages in the ci.appveyor.com build report. - - path: dist\* + - path: $(BUILD) + name: beempy + - path: $(BUILD).sha256 + name: beempy sha256 hash + - path: beempy.zip + name: beempy_zip + - path: beempy.zip.sha256 + name: beempy_zip sha256 hash +on_finish: +- ps: | # update appveyor build version, done last to prevent webhook breakage + update-appveyorbuild -version $env:AVVER \ No newline at end of file -- GitLab