Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated release process to take version from a tag name
  • Loading branch information
jgebal committed Nov 20, 2017
commit e0e9b15da252db44466d5bb4840911bd29a6adff
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ script:

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

deploy:
- provider: releases
api_key: $GITHUB_API_TOKEN
file: utPLSQL-cli.zip
skip_cleanup: true
on:
repository: utPLSQL/utPLSQL-cli
tags: true
- provider: bintray
file: bintray.json
user: $BINTRAY_USER
key: $BINTRAY_API_KEY
user: ${BINTRAY_USER}
key: ${BINTRAY_API_KEY}
dry-run: false
on: develop
on:
repository: utPLSQL/utPLSQL-cli
branch: develop
9 changes: 1 addition & 8 deletions .travis/maven_cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ else
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
fi

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

# The Java API is not available on a public repository yet, we need to download and install it locally.
# Always downloading the latest development version.
Expand Down