summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-07-16 20:57:32 +0200
committerWim <wim@42.be>2017-07-16 20:57:32 +0200
commit320be5bffa2a698a08787928251daa62caf30622 (patch)
tree17e708664e6f1365c5f37ad616d8d15758e0c9fd /ci
parent778abea2d9e2d0ec0b05f9197ba0ef2a7d7da725 (diff)
downloadmatterbridge-msglm-320be5bffa2a698a08787928251daa62caf30622.tar.gz
matterbridge-msglm-320be5bffa2a698a08787928251daa62caf30622.tar.bz2
matterbridge-msglm-320be5bffa2a698a08787928251daa62caf30622.zip
Try travis bintray integration
Diffstat (limited to 'ci')
-rwxr-xr-xci/bintray.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/ci/bintray.sh b/ci/bintray.sh
new file mode 100755
index 00000000..8bb70176
--- /dev/null
+++ b/ci/bintray.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+VERSION=$(git describe --tags)
+cd ci
+mkdir binaries
+go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1) -o binaries/matterbridge-$VERSION-$GOOS-$GOARCH
+
+cat > deploy.json <<EOF
+{
+ "package": {
+ "name": "Matterbridge",
+ "repo": "nightly",
+ "subject": "42wim"
+ },
+ "version": {
+ "name": "$VERSION-$GOOS-$GOARCH"
+ },
+ "files":
+ [
+ {"includePattern": "binaries/(*)", "uploadPattern":"\$1"}
+ ],
+ "publish": true
+}
+EOF
+