未验证 提交 5704cb3a 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1559 from sangshuduo/add-test-execution-in-ci

Add test execution in ci
......@@ -41,12 +41,29 @@ addons:
branch_pattern: coverity_scan
before_script:
- mkdir build
- cd build
- mkdir debug
- cd debug
script:
- cmake ..
- cmake --build .
- cmake --build . || exit $?
- |-
case $TRAVIS_OS_NAME in
linux)
cd ../tests/script
sudo ./test.sh 2>&1 | tee out.txt
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"
if [ "$total_failed" -ne "0" ]; then
exit $total_failed
fi
;;
esac
#
# Build Matrix
......@@ -58,6 +75,7 @@ matrix:
packages:
- build-essential
- cmake
- net-tools
# - os: osx
# addons:
......
#################################
#run general/table/basic1.sim
run general/table/basic2.sim
run general/table/basic1.sim
#run general/table/basic2.sim
#run general/table/basic3.sim
##################################
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1
system ifconfig
system sh/exec.sh -n dnode1 -s start
sql connect
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册