Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 2edb91e

Browse files
Fixing travis install_dependencies.sh with branch
1 parent f6f1c57 commit 2edb91e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: java
33
before_install:
44
- "export DISPLAY=:99.0"
55
- "sh -e /etc/init.d/xvfb start"
6-
- BRANCH=$TRAVIS_BRANCH ./install_dependencies.sh
6+
- ./install_dependencies.sh
77

88
install: mvn install
99

install_dependencies.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
set -e
33

44
sdk_project="tagmycode-java-sdk"
5-
branch=${BRANCH}
5+
BRANCH=${TRAVIS_BRANCH}
66
[[ -z "$BRANCH" ]] && { echo "Error: parameter BRANCH is empty" ; exit 1; }
77

88
rm -fr ${sdk_project}
99

10-
echo "Installing ${sdk_project}, branch ${branch}"
10+
echo "Installing ${sdk_project}, branch ${BRANCH}"
1111

1212
git clone https://github.com/massimozappino/${sdk_project}.git
1313
cd ${sdk_project}
14-
git checkout ${branch}
14+
git checkout ${BRANCH}
1515
mvn install -DskipTests

0 commit comments

Comments
 (0)