summaryrefslogtreecommitdiff
path: root/.travis/common/post-upload.sh
diff options
context:
space:
mode:
Diffstat (limited to '.travis/common/post-upload.sh')
-rwxr-xr-x.travis/common/post-upload.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/.travis/common/post-upload.sh b/.travis/common/post-upload.sh
new file mode 100755
index 000000000..90deaaec8
--- /dev/null
+++ b/.travis/common/post-upload.sh
@@ -0,0 +1,22 @@
1#!/bin/bash -ex
2
3# Copy documentation
4cp license.txt "$REV_NAME"
5cp README.md "$REV_NAME"
6
7tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME"
8
9# Find out what release we are building
10if [ -z $TRAVIS_TAG ]; then
11 RELEASE_NAME=head
12else
13 RELEASE_NAME=$(echo $TRAVIS_TAG | cut -d- -f1)
14fi
15
16mv "$REV_NAME" $RELEASE_NAME
17
187z a "$REV_NAME.7z" $RELEASE_NAME
19
20# move the compiled archive into the artifacts directory to be uploaded by travis releases
21mv "$ARCHIVE_NAME" artifacts/
22mv "$REV_NAME.7z" artifacts/