From ea47b8a23433df193a95dd8c702553012162d99a Mon Sep 17 00:00:00 2001 From: Artem Labazin Date: Wed, 24 Jan 2018 02:03:55 +0300 Subject: [PATCH] Fix Travis deploy issue --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4a4a520..91750ff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,11 +15,13 @@ install: mvn --settings .settings.xml clean install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V script: - mvn --settings .settings.xml verify -DskipTests=false -Dmaven.javadoc.skip=false -B -U + mvn --settings .settings.xml verify -DskipTests=false -Dmaven.javadoc.skip=true -B -U before_deploy: - mvn help:evaluate -N -Dexpression=project.version | grep -v '\[' - export project_version=$(mvn help:evaluate -N -Dexpression=project.version | grep -v '\[') + - sed -i -- "s/\${env.SONATYPE_PASSWORD}/$SONATYPE_PASSWORD/g" .settings.xml + - mvn --settings .settings.xml clean deploy -DskipTests=true -Dmaven.javadoc.skip=false -B -U deploy: provider: releases @@ -34,6 +36,3 @@ deploy: tags: true repo: infobip/popout name: $project_version - -after_deploy: - mvn --settings .settings.xml deploy -DskipTests=true -Dmaven.javadoc.skip=true -B -U