🐎 ci(test): 增加test stage

This commit is contained in:
yangwei
2023-05-31 13:57:17 +08:00
parent 67ed711088
commit 7ed1582309
3 changed files with 56 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ variables:
stages:
- build
- test
.build_before_script:
before_script:
@@ -41,6 +42,26 @@ stages:
tags:
- share
run_test_for_centos7:
stage: test
image: $BUILD_IMAGE_CENTOS7
extends: .build_by_travis_for_centos7
script:
- yum makecache
- ./ci/travis.sh
- cd build
- ctest --verbose
run_test_for_centos8:
stage: test
image: $BUILD_IMAGE_CENTOS8
extends: .build_by_travis_for_centos8
script:
- yum makecache
- ./ci/travis.sh
- cd build
- ctest --verbose
branch_build_debug_for_centos7:
stage: build
extends: .build_by_travis_for_centos7