Add bintray deploy in travis build.

This commit is contained in:
Syoyo Fujita
2016-03-12 16:13:04 +09:00
parent bc42bc47ad
commit f2db18dc53
3 changed files with 67 additions and 11 deletions

12
tools/travis_postbuild.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
DATEVAL=`date +%b-%d-%Y`
VERSIONVAL=master
# Use tag as version
if [ $TRAVIS_TAG ]; then
VERSIONVAL=$TRAVIS_TAG
fi
sed -e s%@DATE@%${DATEVAL}% .bintray.in > .bintray.tmp
sed -e s%@VERSION@%${VERSIONVAL}% .bintray.tmp > .bintray.json