Revert "force deployment"

This reverts commit e5c0d227ab2d1e6dc51c92f473aaaeb35d38b0b3.
This commit is contained in:
William Cheng 2018-11-15 12:25:14 +08:00
parent e5c0d227ab
commit 31d9928734

View File

@ -115,19 +115,18 @@ install:
script: script:
# fail fast # fail fast
- set -e - set -e
# # fail if templates/generators contain carriage return '\r' # fail if templates/generators contain carriage return '\r'
# - /bin/bash ./bin/utils/detect_carriage_return.sh - /bin/bash ./bin/utils/detect_carriage_return.sh
# # fail if generators contain merge conflicts # fail if generators contain merge conflicts
# - /bin/bash ./bin/utils/detect_merge_conflict.sh - /bin/bash ./bin/utils/detect_merge_conflict.sh
# # fail if generators contain tab '\t' # fail if generators contain tab '\t'
# - /bin/bash ./bin/utils/detect_tab_in_java_class.sh - /bin/bash ./bin/utils/detect_tab_in_java_class.sh
# # run integration tests defined in maven pom.xml # run integration tests defined in maven pom.xml
# - ./run-in-docker.sh mvn --quiet --batch-mode clean install - ./run-in-docker.sh mvn --quiet --batch-mode clean install
# - mvn --quiet --batch-mode verify -Psamples - mvn --quiet --batch-mode verify -Psamples
after_success: after_success:
# push to maven repo # push to maven repo
- echo "SONATYPE_USERNAME=$SONATYPE_USERNAME, TRAVIS_TAG=$TRAVIS_TAG, TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST" - if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
if [ "$TRAVIS_BRANCH" = "master" ]; then if [ "$TRAVIS_BRANCH" = "master" ]; then
mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml; mvn clean deploy -DskipTests=true -B -U -P release --settings CI/settings.xml;
echo "Finished mvn clean deploy for $TRAVIS_BRANCH"; echo "Finished mvn clean deploy for $TRAVIS_BRANCH";