File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : java
22before_install :
3- - " export IS_SNAPSHOT =`grep '<version>' pom.xml -m 1 | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'-' -f 2`"
3+ - " export VERSION_SUFFIX =`grep '<version>' pom.xml -m 1 | cut -d'>' -f 2 | cut -d'<' -f 1 | cut -d'-' -f 2`"
44install :
55- mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true -B -V
66script : mvn test -P !build-extras -B
1414 global :
1515 - GPG_DIR="`pwd`/cd"
1616after_success :
17- - if [[ $IS_SNAPSHOT == "SNAPSHOT" ]]; then
18- export SNAPSHOT=TRUE ;
17+ - if [[ $VERSION_SUFFIX == "SNAPSHOT" ]]; then
18+ export IS_SNAPSHOT=true ;
1919 else
20- export SNAPSHOT=FALSE ;
20+ export IS_SNAPSHOT=false ;
2121 fi
22- - if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $SNAPSHOT == "TRUE " || -n "$TRAVIS_TAG" && $SNAPSHOT == "FALSE " ]]; then
22+ - if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $IS_SNAPSHOT == "true " || -n "$TRAVIS_TAG" && $IS_SNAPSHOT == "false " ]]; then
2323 mvn sonar:sonar -Dsonar.login=${SONAR_TOKEN} -Dsonar.organization="camel-tooling" -Dsonar.projectKey="camel-lsp-server" -Dsonar.projectName="Camel LSP Server";
2424 fi
25- - if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $SNAPSHOT == "TRUE " ]]; then
25+ - if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $IS_SNAPSHOT == "true " ]]; then
2626 ./cd/before-deploy.sh;
2727 ./cd/deploy.sh;
28- elif [[ -n "$TRAVIS_TAG" && $SNAPSHOT == "FALSE " ]]; then
28+ elif [[ -n "$TRAVIS_TAG" && $IS_SNAPSHOT == "false " ]]; then
2929 ./cd/before-deploy.sh;
3030 ./cd/deploy.sh;
3131 fi
You can’t perform that action at this time.
0 commit comments