Skip to content

Commit

Permalink
Fix Travis deploy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xxlabaza committed Jan 23, 2018
1 parent 4aeb97e commit ea47b8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit ea47b8a

Please sign in to comment.