mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Travis: print verbose build log only if build errors
This commit is contained in:
parent
53ba831c90
commit
ec99268824
@ -17,18 +17,21 @@ function build_sketches()
|
|||||||
continue
|
continue
|
||||||
fi;
|
fi;
|
||||||
if [[ -f "$sketchdir/.test.skip" ]]; then
|
if [[ -f "$sketchdir/.test.skip" ]]; then
|
||||||
echo -e "\n\n ------------ Skipping $sketch ------------ \n\n";
|
echo -e "\n ------------ Skipping $sketch ------------ \n";
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo -e "\n\n ------------ Building $sketch ------------ \n\n";
|
echo -e "\n ------------ Building $sketch ------------ \n";
|
||||||
# $arduino --verify $sketch;
|
# $arduino --verify $sketch;
|
||||||
echo "$build_cmd $sketch"
|
echo "$build_cmd $sketch"
|
||||||
time $build_cmd $sketch
|
time ($build_cmd $sketch >build.log)
|
||||||
local result=$?
|
local result=$?
|
||||||
if [ $result -ne 0 ]; then
|
if [ $result -ne 0 ]; then
|
||||||
echo "Build failed ($1)"
|
echo "Build failed ($1)"
|
||||||
|
echo "Build log:"
|
||||||
|
cat build.log
|
||||||
return $result
|
return $result
|
||||||
fi
|
fi
|
||||||
|
rm build.log
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user