add test execution in CI

[TD-96]
This commit is contained in:
Shuduo Sang 2020-04-06 08:39:39 +08:00
parent c84cd03f49
commit 57f96f1b21
1 changed files with 19 additions and 2 deletions

View File

@ -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: