提交 1d1ad5b0 编写于 作者: L Lei Wang 提交者: Jiangtao Hu

Add more jobs to ci.

上级 a15e0255
......@@ -17,7 +17,7 @@ before_script:
- cp scripts/AGREEMENT.txt ${HOME}/.cache/.apollo_agreement.txt
script:
- ./docker/scripts/dev_start.sh dev-x86_64-20170919_1658-ci
- ./apollo_docker.sh ${JOB}
- ./apollo_docker.sh ${JOB} --jobs=10
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
notifications:
email:
......
......@@ -257,7 +257,7 @@ function release() {
function gen_coverage() {
bazel clean
generate_build_targets
echo "$BUILD_TARGETS" | grep -v "cnn_segmentation_test" | xargs bazel test $DEFINES -c dbg --config=coverage
echo "$BUILD_TARGETS" | grep -v "cnn_segmentation_test" | xargs bazel test $DEFINES -c dbg --config=coverage $@
if [ $? -ne 0 ]; then
fail 'run test failed!'
fi
......@@ -299,9 +299,9 @@ function run_test() {
generate_build_targets
if [ "$USE_GPU" == "1" ]; then
echo -e "${RED}Need GPU to run the tests.${NO_COLOR}"
echo "$BUILD_TARGETS" | xargs bazel test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings
echo "$BUILD_TARGETS" | xargs bazel test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings $@
else
echo "$BUILD_TARGETS" | grep -v "cnn_segmentation_test" | xargs bazel test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings
echo "$BUILD_TARGETS" | grep -v "cnn_segmentation_test" | xargs bazel test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings $@
fi
if [ $? -eq 0 ]; then
success 'Test passed!'
......@@ -538,12 +538,12 @@ function main() {
;;
test)
DEFINES="${DEFINES} --cxxopt=-DCPU_ONLY"
run_test
run_test $@
;;
test_gpu)
DEFINES="${DEFINES} --cxxopt=-DUSE_CAFFE_GPU"
USE_GPU="1"
run_test
run_test $@
;;
release)
release 1
......@@ -552,7 +552,7 @@ function main() {
release 0
;;
coverage)
gen_coverage
gen_coverage $@
;;
clean)
clean
......
......@@ -86,7 +86,7 @@ function push() {
docker push "$RELEASE_NAME"
}
if [ $# != 1 ];then
if [ $# == 0 ];then
print_usage
exit 1
fi
......@@ -104,6 +104,6 @@ case $1 in
gen_docker
;;
*)
docker exec -u $USER apollo_dev bash -c "./apollo.sh $1"
docker exec -u $USER apollo_dev bash -c "./apollo.sh $@"
;;
esac
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册