diff options
| author | fumingwei <[email protected]> | 2023-03-23 12:56:03 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2023-03-23 13:19:34 +0800 |
| commit | 08a8907cdb1f7537d95ee144f947a743e2ae697d (patch) | |
| tree | bafe8ec995c59b0e4604986dbf97ce97f1078950 /ci | |
| parent | 1b3d40eaa3db4867d71b0908f6121f1f21b8b448 (diff) | |
feature:1.新增执行测试用例执行流程2.新增cppcheck执行流程
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/travis.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ci/travis.sh b/ci/travis.sh index 3cfc243..c543ff4 100644 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -54,11 +54,18 @@ cmake3 -DCMAKE_CXX_FLAGS=$CXX_FLAGS \ make + +if [ -n "${UNIT_TEST}" ]; then + yum install -y https://dl.influxdata.com/telegraf/releases/telegraf-1.25.1-1.x86_64.rpm + /usr/bin/telegraf -config ../test/bin/telegraf_unit_test.conf --quiet & + make test + ctest --verbose +fi + if [ -n "${PACKAGE}" ]; then make package fi - if [ -n "${UPLOAD_RPM}" ]; then cp ~/rpm_upload_tools.py ./ python3 rpm_upload_tools.py ${PULP3_REPO_NAME} ${PULP3_DIST_NAME} *.rpm |
