-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcreate_release.sh
More file actions
executable file
·33 lines (28 loc) · 1019 Bytes
/
create_release.sh
File metadata and controls
executable file
·33 lines (28 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -ev
VERSION=`date +%Y%m%d%H%M`
MVN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
# Strip -SNAPSHOT if exists
MVN_VERSION=${MVN_VERSION/-SNAPSHOT/}
#overcome maven assemble issue: https://github.com/mojohaus/appassembler/issues/61
sed -i '/CYGWIN\*) cygwin=true/c\ CYGWIN*|MINGW*) cygwin=true ;;' target/appassembler/bin/utplsql
mkdir dist
mv target/appassembler utPLSQL-cli
zip -r -q dist/utPLSQL-cli-${TRAVIS_BRANCH}-${VERSION}.zip utPLSQL-cli
zip -r -q utPLSQL-cli.zip utPLSQL-cli
md5sum utPLSQL-cli.zip --tag > utPLSQL-cli.zip.md5
cat > bintray.json <<EOF
{
"package": {
"name": "utPLSQL-cli-${TRAVIS_BRANCH}",
"repo": "utPLSQL-cli",
"subject": "utplsql",
"website_url": "https://github.com/utPLSQL/utPLSQL-cli",
"vcs_url": "https://github.com/utPLSQL/utPLSQL-cli.git",
"licenses": [ "MIT" ]
},
"version": { "name": "${MVN_VERSION}" },
"files": [ { "includePattern": "dist/(.*)", "uploadPattern": "\$1" } ],
"publish": true
}
EOF