This is an automated email from the ASF dual-hosted git repository.

bnolsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 6de8a34  update cmake build, add quiche build
     new 7ea00e8  Merge pull request #218 from traeak/branch_cmake
6de8a34 is described below

commit 6de8a340c7f8501680304c40380be4f5efb21fde
Author: Brian Olsen <[email protected]>
AuthorDate: Thu Sep 28 16:50:07 2023 +0000

    update cmake build, add quiche build
---
 jenkins/bin/cmake.sh | 44 +++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 39 insertions(+), 5 deletions(-)

diff --git a/jenkins/bin/cmake.sh b/jenkins/bin/cmake.sh
index 31b3d9d..8d73b45 100755
--- a/jenkins/bin/cmake.sh
+++ b/jenkins/bin/cmake.sh
@@ -20,12 +20,46 @@
 
 set -x
 
+if [ "${ATS_BRANCH}" == "9.0.x" -o \
+     "${ATS_BRANCH}" == "9.1.x" -o \
+     "${ATS_BRANCH}" == "9.2.x" -o ]
+then
+  echo "CMake builds are not supported for the 9.x branch."
+  echo "No need to test it to show that it fails."
+  exit 0
+fi
+
 cd "${WORKSPACE}/src"
 
-mkdir cmake-build-release
-cd cmake-build-release
-cmake -GNinja -DCMAKE_COMPILE_WARNING_AS_ERROR=ON 
-DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_EXPERIMENTAL_PLUGINS=ON 
-DOPENSSL_ROOT_DIR=/opt/openssl-quic -DCMAKE_INSTALL_PREFIX=/tmp/ats ..
-cmake --build . -j4 -v
-cmake --install .
+cmake -B cmake-build-release\
+  -GNinja \
+  -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DBUILD_EXPERIMENTAL_PLUGINS=ON \
+  -DOPENSSL_ROOT_DIR=/opt/openssl-quic \
+  -DCMAKE_INSTALL_PREFIX=/tmp/ats
+cmake --build cmake-build-release -j4 -v
+cmake --install cmake-build-release
+
+pushd cmake-build-release
 ctest -j4 --output-on-failure --no-compress-output -T Test
 /tmp/ats/bin/traffic_server -K -k -R 1
+popd
+
+# quiche build
+cmake -B cmake-build-quiche \
+  -GNinja \
+  -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
+  -DENABLE_QUICHE=ON \
+  -DCMAKE_BUILD_TYPE=Release \
+  -DBUILD_EXPERIMENTAL_PLUGINS=ON \
+  -Dquiche_ROOT=/opt/quiche \
+  -DOPENSSL_ROOT_DIR=/opt/boringssl \
+  -DCMAKE_INSTALL_PREFIX=/tmp/ats_quiche
+cmake --build cmake-build-quiche -j4 -v
+cmake --install cmake-build-quiche
+
+pushd cmake-build-quiche
+ctest -j4 --output-on-failure --no-compress-output -T Test
+/tmp/ats_quiche/bin/traffic_server -K -k -R 1
+popd

Reply via email to