-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1084 from twitter/fixTests
Adds some output while assembly is building to keep travis happy
- Loading branch information
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
#!/bin/bash | ||
set -e # first error should stop execution of this script | ||
|
||
# Identify the bin dir in the distribution, and source the common include script | ||
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )" | ||
TARGET=$1 | ||
|
||
cd $BASE_DIR | ||
sed -i'' -e 's/\/\/ test in assembly/test in assembly/g' project/Build.scala | ||
time ./sbt ++$TRAVIS_SCALA_VERSION $TARGET/assembly &> /dev/null || ./sbt ++$TRAVIS_SCALA_VERSION $TARGET/assembly | ||
|
||
bash -c "while true; do echo -n .; sleep 5; done" & | ||
PROGRESS_REPORTER_PID=$! | ||
# Turn off exit on error while we run this command that we allow fail | ||
set +e | ||
time ./sbt ++$TRAVIS_SCALA_VERSION $TARGET/assembly &> /dev/null | ||
|
||
RET_CODE=$? | ||
# Turn back on | ||
set -e | ||
|
||
kill $PROGRESS_REPORTER_PID >& /dev/null | ||
|
||
if [ $RET_CODE -ne 0 ]; then | ||
./sbt ++$TRAVIS_SCALA_VERSION $TARGET/assembly | ||
else | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters