File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,18 @@ before_install:
1717  - if [[ $TRAVIS_BRANCH != "master" && $SONAR_ENABLED == "true" ]]; then mvn sonar:sonar "-Dsonar.branch.name=${TRAVIS_BRANCH}" "-Dsonar.branch.target=master" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}"; fi 
1818
1919install :
20-   - mvn --settings default.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V 
21-   on :
22-     branch : master 
20+   - if [[ $TRAVIS_BRANCH != "master" ]]; then mvn --settings default.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V; fi 
2321
2422# # Build and release to maven central
2523script :
2624  - if [[ $TRAVIS_BRANCH == "master" ]]; then mvn clean deploy --settings default.xml -DskipTests=true -B -U -Prelease; fi 
27-   on :
28-     branch : master 
2925
3026# # Get the project version
3127before_deploy :
3228  - mvn help:evaluate -N -Dexpression=project.version|grep -v '\[' 
3329  - export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[') 
3430  - export TRAVIS_TAG=$project_version 
35-   - git tag $TRAVIS_TAG 
36-   on :
37-     branch : master 
31+   - if [[ $TRAVIS_BRANCH != "master" ]]; then git tag $TRAVIS_TAG; fi 
3832
3933# # Create release in GitHub
4034deploy :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments