Skip to content

Commit 257150b

Browse files
committed
remove invalid statements
1 parent 0dba5b2 commit 257150b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.travis.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

1919
install:
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
2523
script:
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
3127
before_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
4034
deploy:

0 commit comments

Comments
 (0)