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