提交 ead50301 编写于 作者: sangshuduo's avatar sangshuduo

add test execution in CI

[TD-96]
上级 871322a4
......@@ -41,12 +41,28 @@ addons:
branch_pattern: coverity_scan
before_script:
- mkdir build
- cd build
- mkdir debug
- cd debug
script:
- cmake ..
- cmake --build .
- |-
case $TRAVIS_OS_NAME in
linux)
cd ../tests/script
sudo ./test.sh >& out.txt
sync
sleep 2
cat out.txt
grep success out.txt
total_success=`grep success out.txt | wc -l`
echo "Total $total_success success"
grep failed out.txt
total_failed=`grep failed out.txt | wc -l`
echo "Total $total_failed failed"
;;
esac
#
# Build Matrix
......@@ -58,6 +74,7 @@ matrix:
packages:
- build-essential
- cmake
- net-tools
# - os: osx
# addons:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册