-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcreate_release.sh
More file actions
33 lines (28 loc) · 975 Bytes
/
Copy pathcreate_release.sh
File metadata and controls
33 lines (28 loc) · 975 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`
#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
# Remove Oracle libraries du to licensing problems
rm -f utPLSQL-cli/lib/ucp*.jar
rm -f utPLSQL-cli/lib/ojdbc8*.jar
rm -f utPLSQL-cli/lib/orai18n*.jar
zip -r -q dist/utPLSQL-cli-${TRAVIS_BRANCH}-${VERSION}.zip utPLSQL-cli
zip -r -q utPLSQL-cli.zip utPLSQL-cli
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": "${TRAVIS_BRANCH}" },
"files": [ { "includePattern": "dist/(.*)", "uploadPattern": "\$1" } ],
"publish": true
}
EOF