Skip to content

Commit 5926587

Browse files
committed
improved variable naming
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
1 parent eaaf670 commit 5926587

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: java
22
before_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`"
44
install:
55
- mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true -B -V
66
script: mvn test -P !build-extras -B
@@ -14,18 +14,18 @@ env:
1414
global:
1515
- GPG_DIR="`pwd`/cd"
1616
after_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

0 commit comments

Comments
 (0)