summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-06-24 18:37:07 +0800
committerlijia <[email protected]>2024-06-25 11:14:35 +0800
commitfba00d59cbae937b0132507c2b82ecb8da36b57b (patch)
tree53d77ae8db6db8a247d4c9604cd015fff09e4110 /.gitlab-ci.yml
parent82cd2ced07a3c3d893d44943259c40dd6b269374 (diff)
feat: add history and lastest different version test stage; decoder result use struct iovec.dev-2.0
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml56
1 files changed, 46 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad95b54..61626a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ variables:
libMESA_prof_load-devel libbreakpad_mini-devel libMESA_htable-devel
stellar-on-sapp-devel stellar-on-sapp systemd-devel libfieldstat3-devel libfieldstat3 libMESA_field_stat2
libMESA_jump_layer libMESA_htable libMESA_handle_logger
- INSTALL_PREFIX: "/home/mesasoft/sapp_run/"
+ INSTALL_PREFIX: "/opt/tsg/"
stages:
- build
@@ -34,15 +34,6 @@ stages:
tags:
- share
-run_test_for_centos8:
- stage: test
- extends: .build_by_travis_for_centos8
- script:
- - yum makecache
- - ./ci/travis.sh
- - cd build
- - ctest3 --verbose
-
branch_build_debug_for_centos8:
stage: build
extends: .build_by_travis_for_centos8
@@ -134,3 +125,48 @@ release_build_release_for_centos8:
- build/*.rpm
only:
- tags
+
+###############################################################################
+# test
+###############################################################################
+
+.install_rpm_package: &install_rpm_package
+ - rpm -e sapp || true
+ - rpm -e sapp-devel || true
+ - rpm -e stellar-on-sapp || true
+ - rpm -e stellar-on-sapp-devel || true
+ - rpm -ivh /tmp/sapp.x86_64.rpm --prefix=${INSTALL_PREFIX}/sapp --force --nodeps
+ - rpm -ivh /tmp/sapp-devel.x86_64.rpm --prefix=${INSTALL_PREFIX}/sapp --force --nodeps
+ - rpm -ivh /tmp/stellar-on-sapp.x86_64.rpm --prefix=${INSTALL_PREFIX} --force --nodeps
+ - rpm -qa | grep sapp
+ - rpm -qa | grep stellar-on-sapp
+ - ls -l /opt/MESA/lib && echo "/opt/MESA/lib" >> /etc/ld.so.conf
+
+
+history_version_test:
+ stage: test
+ extends: .build_by_travis_for_centos8
+ script:
+ - yum makecache
+ - ./ci/travis.sh
+ - cp -f ./support/stellar-on-sapp*.rpm /tmp/stellar-on-sapp.x86_64.rpm
+ - cp -f ./support/sapp-devel*.rpm /tmp/sapp-devel.x86_64.rpm
+ - cp -f ./support/sapp-4*.rpm /tmp/sapp.x86_64.rpm
+ - *install_rpm_package
+ - cd build
+ - ctest3 --verbose
+
+latest_version_test:
+ stage: test
+ extends: .build_by_travis_for_centos8
+ script:
+ - yum makecache
+ - ./ci/travis.sh
+ - rm -f stellar-on-sapp*.rpm sapp*.rpm
+ - yumdownloader stellar-on-sapp sapp-devel sapp
+ - cp -f stellar-on-sapp*.rpm /tmp/stellar-on-sapp.x86_64.rpm
+ - cp -f sapp-devel*.rpm /tmp/sapp-devel.x86_64.rpm
+ - cp -f sapp-4*.rpm /tmp/sapp.x86_64.rpm
+ - *install_rpm_package
+ - cd build
+ - ctest3 --verbose \ No newline at end of file