Skip to content

Commit

Permalink
Build all connectors when building in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Aug 1, 2019
1 parent fb5b428 commit bb1f316
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions scripts/buildChanged.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,24 @@ else
fi

git diff "$COMPARE_TO" --exit-code --quiet "$DIR" build.sbt project/ .travis.yml
DIFF_EXIT_CODE=$?

if [ $? -eq 1 ]
if [ "$TRAVIS_EVENT_TYPE" == "cron" ]
then
echo "Building everything because nightly"
elif [ "$DIFF_EXIT_CODE" -eq 1 ]
then
echo "Changes in ${DIR}"
# using jabba for custom jdk management
curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash
. ~/.jabba/jabba.sh
jabba install "$JDK"
jabba use "$JDK"
java -version
$PRE_CMD
sbt -jvm-opts .jvmopts-travis "$CMD"
else
echo "No changes in $DIR"
exit 0
fi

# using jabba for custom jdk management
curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash
. ~/.jabba/jabba.sh
jabba install "$JDK"
jabba use "$JDK"
java -version
$PRE_CMD
sbt -jvm-opts .jvmopts-travis "$CMD"

0 comments on commit bb1f316

Please sign in to comment.