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

add test execution in CI

[TD-96]
上级 c84cd03f
...@@ -41,12 +41,28 @@ addons: ...@@ -41,12 +41,28 @@ addons:
branch_pattern: coverity_scan branch_pattern: coverity_scan
before_script: before_script:
- mkdir build - mkdir debug
- cd build - cd debug
script: script:
- cmake .. - cmake ..
- cmake --build . - 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 # Build Matrix
...@@ -58,6 +74,7 @@ matrix: ...@@ -58,6 +74,7 @@ matrix:
packages: packages:
- build-essential - build-essential
- cmake - cmake
- net-tools
# - os: osx # - os: osx
# addons: # addons:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册