Browse Source

ci: add time to complete make builds

mission-4.1.18
Francisco Ferreira 9 years ago committed by Lucas De Marchi
parent
commit
292251e2aa
  1. 7
      Tools/scripts/build_ci.sh

7
Tools/scripts/build_ci.sh

@ -55,6 +55,10 @@ waf=modules/waf/waf-light @@ -55,6 +55,10 @@ waf=modules/waf/waf-light
# get list of boards supported by the waf build
for board in $($waf list_boards | head -n1); do waf_supported_boards[$board]=1; done
function get_time {
date -u "+%s"
}
echo "Targets: $CI_BUILD_TARGET"
for t in $CI_BUILD_TARGET; do
# skip make-based build for clang
@ -69,7 +73,10 @@ for t in $CI_BUILD_TARGET; do @@ -69,7 +73,10 @@ for t in $CI_BUILD_TARGET; do
make px4-cleandep
fi
start_time=$(get_time)
make $t -j2
diff_time=$(($(get_time)-$start_time))
echo -e "\033[32m'make' finished successfully (${diff_time}s)\033[0m"
ccache -s && ccache -z
popd
done

Loading…
Cancel
Save