ZEPPELIN-207: travis-ci build log is too long to be displayed

This commit is contained in:
caofangkun 2015-08-07 16:31:04 +08:00
parent e5b00673ab
commit aa2568dbea

15
1.sh
View file

@ -1,15 +0,0 @@
#/bin/bash
nohup mvn package -DskipTests -Phadoop-2.3 -Ppyspark -B 2>&1 > install.log &
count=0
nextPrint=$(date +%s)
while read line; do
count=$((count+=1))
now=$(date +%s)
if [[ $now -gt $nextPrint ]];then
echo "Text read from file: $count"
sleep 2
now=$(date +%s)
nextPrint=$((now+10))
fi
done < "install.log"