Skip to content

Commit

Permalink
Build all connectors when building in nightly (#1851)
Browse files Browse the repository at this point in the history
Build all connectors when building in nightly
  • Loading branch information
2m authored Aug 1, 2019
2 parents 569f2aa + bb1f316 commit 8b4b86b
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 8b4b86b

Please sign in to comment.