summaryrefslogtreecommitdiff
path: root/ci/travis.sh
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-11-11 17:48:31 +0800
committeryangwei <[email protected]>2024-11-11 18:29:12 +0800
commite9d67637421ab46a90c137275e89ff492c7c70a3 (patch)
treee5d07bcfb4adb816cac37d3e62ef6a50a21db5c4 /ci/travis.sh
parent357179dd15ed1ab0eea73099a1c506f9c85d7f40 (diff)
🐎 ci(add aarch64 jobs): aarch64 + el9v3.1.2develop-3.0
Diffstat (limited to 'ci/travis.sh')
-rw-r--r--ci/travis.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/ci/travis.sh b/ci/travis.sh
index c3f09ff..31355be 100644
--- a/ci/travis.sh
+++ b/ci/travis.sh
@@ -54,11 +54,20 @@ 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 &
- ctest --verbose
+ ARCH=$(uname -m)
+ if [ "$ARCH" = "x86_64" ]; then
+ TELEGRAF_RPM="https://dl.influxdata.com/telegraf/releases/telegraf-1.25.1-1.x86_64.rpm"
+ elif [ "$ARCH" = "aarch64" ]; then
+ TELEGRAF_RPM="https://dl.influxdata.com/telegraf/releases/telegraf-1.25.1-1.aarch64.rpm"
+ else
+ echo "Unsupported architecture: $ARCH"
+ exit 1
+ fi
+
+ yum install -y $TELEGRAF_RPM
+ /usr/bin/telegraf -config ../test/bin/telegraf_unit_test.conf --quiet &
+ ctest --verbose
fi
if [ -n "${PACKAGE}" ]; then