summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-07-12 22:27:32 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-07-13 17:12:51 +0000
commit4c3b4d662f3b49270b4358cad75120cc8f54e7c4 (patch)
tree1d9f29c2c86b370a16fa3f5b1770b7764b4a5f8c
parentCI: Save AppVeyor cache if the compilation succeeds (even if installation or ... (diff)
downloadinkscape-4c3b4d662f3b49270b4358cad75120cc8f54e7c4.tar.gz
inkscape-4c3b4d662f3b49270b4358cad75120cc8f54e7c4.zip
CI/AppVeyor: Add branch name, commit date/hash and build architecture to artifact names
-rw-r--r--appveyor.sh5
-rw-r--r--appveyor.yml2
2 files changed, 5 insertions, 2 deletions
diff --git a/appveyor.sh b/appveyor.sh
index 85776eb8a..62a53f780 100644
--- a/appveyor.sh
+++ b/appveyor.sh
@@ -72,4 +72,7 @@ message "##### BUILD SUCCESSFULL #####\n\n"
### package
-7z a inkscape.7z inkscape
+BRANCH=$(git branch | tail -n 1 | tr -d ' ')
+DATE=$(git log -n 1 --pretty=%cd --date=short)
+HASH=$(git rev-parse --short HEAD)
+7z a "inkscape-${BRANCH}-(${DATE}_${HASH})-${MSYSTEM_CARCH}.7z" inkscape
diff --git a/appveyor.yml b/appveyor.yml
index 4bf250aed..3c764c2e3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -12,7 +12,7 @@ build_script:
- C:\msys64\usr\bin\bash --login -c "$(cygpath ${APPVEYOR_BUILD_FOLDER})/appveyor.sh"
artifacts:
- - path: build\inkscape.7z
+ - path: build\inkscape*.7z
cache:
- C:\msys64\home\appveyor\.ccache