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

reduce CI output to make the log clear.

[TD-214]
上级 14243057
...@@ -32,15 +32,15 @@ matrix: ...@@ -32,15 +32,15 @@ matrix:
- cd debug - cd debug
script: script:
- cmake .. - cmake .. > /dev/null
- make - make > /dev/null
after_success: after_success:
- |- - |-
case $TRAVIS_OS_NAME in case $TRAVIS_OS_NAME in
linux) linux)
cd ${TRAVIS_BUILD_DIR}/debug cd ${TRAVIS_BUILD_DIR}/debug
make install || travis_terminate $? make install > /dev/null || travis_terminate $?
pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/ pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/
pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/
...@@ -98,11 +98,11 @@ matrix: ...@@ -98,11 +98,11 @@ matrix:
# Commands to prepare for build_command # Commands to prepare for build_command
# ** likely specific to your build ** # ** likely specific to your build **
build_command_prepend: cmake . build_command_prepend: cmake . > /dev/null
# The command that will be added as an argument to "cov-build" to compile your project for analysis, # The command that will be added as an argument to "cov-build" to compile your project for analysis,
# ** likely specific to your build ** # ** likely specific to your build **
build_command: make build_command: make > /dev/null
# Pattern to match selecting branches that will run analysis. We recommend leaving this set to 'coverity_scan'. # Pattern to match selecting branches that will run analysis. We recommend leaving this set to 'coverity_scan'.
# Take care in resource usage, and consider the build frequency allowances per # Take care in resource usage, and consider the build frequency allowances per
...@@ -135,15 +135,15 @@ matrix: ...@@ -135,15 +135,15 @@ matrix:
- cd debug - cd debug
script: script:
- cmake -DCOVER=true .. - cmake -DCOVER=true .. > /dev/null
- make - make > /dev/null
after_success: after_success:
- |- - |-
case $TRAVIS_OS_NAME in case $TRAVIS_OS_NAME in
linux) linux)
cd ${TRAVIS_BUILD_DIR}/debug cd ${TRAVIS_BUILD_DIR}/debug
make install || travis_terminate $? make install > /dev/null || travis_terminate $?
pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/ pip install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python2/
pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/ pip3 install --user ${TRAVIS_BUILD_DIR}/src/connector/python/linux/python3/
...@@ -208,8 +208,8 @@ matrix: ...@@ -208,8 +208,8 @@ matrix:
- cd debug - cd debug
script: script:
- cmake .. - cmake .. > /dev/null
- make - make > /dev/null
# - os: osx # - os: osx
# language: c # language: c
...@@ -225,5 +225,5 @@ matrix: ...@@ -225,5 +225,5 @@ matrix:
# - cd ${TRAVIS_BUILD_DIR} # - cd ${TRAVIS_BUILD_DIR}
# - mkdir debug # - mkdir debug
# - cd debug # - cd debug
# - cmake .. # - cmake .. > /dev/null
# - make # - make > /dev/null
...@@ -23,6 +23,17 @@ sleep 1 ...@@ -23,6 +23,17 @@ sleep 1
python3 ./test.py $1 -f insert/tinyint.py python3 ./test.py $1 -f insert/tinyint.py
python3 ./test.py -s $1 python3 ./test.py -s $1
sleep 1 sleep 1
python3 ./test.py $1 -f table/column_name.py
python3 ./test.py -s $1
sleep 1
python3 ./test.py $1 -f table/column_num.py
python3 ./test.py -s $1
sleep 1
python3 ./test.py $1 -f table/db_table.py
python3 ./test.py -s $1
sleep 1
python3 ./test.py $1 -f import_merge/importDataLastTO.py python3 ./test.py $1 -f import_merge/importDataLastTO.py
python3 ./test.py -s $1 python3 ./test.py -s $1
sleep 1 sleep 1
......
...@@ -23,14 +23,14 @@ class TDLog: ...@@ -23,14 +23,14 @@ class TDLog:
self.path = "" self.path = ""
def info(self, info): def info(self, info):
printf("%s %s" % (datetime.datetime.now(), info)) print("%s %s" % (datetime.datetime.now(), info))
def sleep(self, sec): def sleep(self, sec):
printf("%s sleep %d seconds" % (datetime.datetime.now(), sec)) print("%s sleep %d seconds" % (datetime.datetime.now(), sec))
time.sleep(sec) time.sleep(sec)
def debug(self, err): def debug(self, err):
printf("\033[1;36m%s %s\033[0m" % (datetime.datetime.now(), err)) print("\033[1;36m%s %s\033[0m" % (datetime.datetime.now(), err))
def success(self, info): def success(self, info):
printf("\033[1;32m%s %s\033[0m" % (datetime.datetime.now(), info)) printf("\033[1;32m%s %s\033[0m" % (datetime.datetime.now(), info))
...@@ -43,7 +43,7 @@ class TDLog: ...@@ -43,7 +43,7 @@ class TDLog:
sys.exit(1) sys.exit(1)
def printNoPrefix(self, info): def printNoPrefix(self, info):
printf("\033[1;36m%s\033[0m" % (info)) print("\033[1;36m%s\033[0m" % (info))
tdLog = TDLog() tdLog = TDLog()
...@@ -27,9 +27,9 @@ fi ...@@ -27,9 +27,9 @@ fi
cd ../pytest cd ../pytest
if [ "$1" == "cron" ]; then if [ "$1" == "cron" ]; then
./fulltest.sh 2>&1 | tee pytest-out.txt ./fulltest.sh > /dev/null | tee pytest-out.txt
else else
./smoketest.sh 2>&1 | tee pytest-out.txt ./smoketest.sh > /dev/null | tee pytest-out.txt
fi fi
totalPySuccess=`grep 'successfully executed' pytest-out.txt | wc -l` totalPySuccess=`grep 'successfully executed' pytest-out.txt | wc -l`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册