Skip to content

Commit f018c62

Browse files
authored
Merge pull request #51 from utPLSQL/feature/update_release_process
Updated release process to take version from a tag name
2 parents 3159f00 + e0e9b15 commit f018c62

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@ script:
3838

3939
before_deploy:
4040
- bash .travis/create_release.sh
41+
- if [ ! -z "$TRAVIS_TAG" ]; then VERSION=$(tr -d "/v/" <<<$TRAVIS_TAG); mvn org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=${VERSION}; fi
4142

4243
deploy:
4344
- provider: releases
4445
api_key: $GITHUB_API_TOKEN
4546
file: utPLSQL-cli.zip
4647
skip_cleanup: true
4748
on:
49+
repository: utPLSQL/utPLSQL-cli
4850
tags: true
4951
- provider: bintray
5052
file: bintray.json
51-
user: $BINTRAY_USER
52-
key: $BINTRAY_API_KEY
53+
user: ${BINTRAY_USER}
54+
key: ${BINTRAY_API_KEY}
5355
dry-run: false
54-
on: develop
56+
on:
57+
repository: utPLSQL/utPLSQL-cli
58+
branch: develop

.travis/maven_cfg.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,5 @@ else
1313
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
1414
fi
1515

16-
# Create the settings file with oracle server config.
17-
# If file already exists, Oracle dependencies were cached on previous build.
18-
if [ ! -f $MAVEN_CFG/.cached ]; then
19-
cp settings.xml $MAVEN_CFG/settings.xml
20-
touch $MAVEN_CFG/.cached
21-
else
22-
echo "Using cached maven settings..."
23-
fi
16+
cp settings.xml $MAVEN_CFG/settings.xml
2417

0 commit comments

Comments
 (0)