From bb1f31612db2616f61aee3e18a21b57ecfa9db73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Thu, 1 Aug 2019 12:35:44 +0300 Subject: [PATCH] Build all connectors when building in nightly --- scripts/buildChanged.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/scripts/buildChanged.sh b/scripts/buildChanged.sh index e87a913673..1612ef05a5 100755 --- a/scripts/buildChanged.sh +++ b/scripts/buildChanged.sh @@ -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"