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 9600a1b restore branch quiche build (#283)
9600a1b is described below
commit 9600a1b7d4eee1cf93376f073b85fe1fb8a2cbed
Author: Brian Olsen <[email protected]>
AuthorDate: Tue Nov 7 06:44:26 2023 -0700
restore branch quiche build (#283)
---
jenkins/bin/quiche.sh | 44 ++++++++++++++++++++++
.../{cmake_quiche.pipeline => quiche.pipeline} | 20 ++++++++--
2 files changed, 61 insertions(+), 3 deletions(-)
diff --git a/jenkins/bin/quiche.sh b/jenkins/bin/quiche.sh
new file mode 100755
index 0000000..7fa3b2e
--- /dev/null
+++ b/jenkins/bin/quiche.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This does intentionally not run the regressions, it's primarily a "build"
test
+
+set -x
+
+NPROC=$(nproc)
+
+if [ ! -d cmake ]
+then
+ echo "CMake builds are not supported on pre 10.x branch."
+ exit 0
+fi
+
+cd "${WORKSPACE}/src"
+
+# copy in CMakePresets.json
+presetpath="../ci/jenkins/branch/CMakePresets.json"
+[ -f "${presetpath}" ] && /bin/cp -f "${presetpath}" .
+
+cmake -B build --preset quiche
+cmake --build build -j${NPROC} -v
+cmake --install build
+
+#pushd cmake-build-quiche
+#ctest -j${NPROC} --output-on-failure --no-compress-output -T Test
+#/tmp/ats_quiche/bin/traffic_server -K -k -R 1
+#popd
diff --git a/jenkins/branch/cmake_quiche.pipeline
b/jenkins/branch/quiche.pipeline
similarity index 82%
rename from jenkins/branch/cmake_quiche.pipeline
rename to jenkins/branch/quiche.pipeline
index aceaa0a..b4d37d7 100644
--- a/jenkins/branch/cmake_quiche.pipeline
+++ b/jenkins/branch/quiche.pipeline
@@ -59,7 +59,7 @@ pipeline {
}
}
- stage('Build/Test') {
+ stage('Build') {
steps {
dir('src') {
echo "Building"
@@ -68,14 +68,28 @@ pipeline {
set -e
export PATH=/opt/bin:${PATH}
source ../ci/jenkins/bin/environment.sh
- ../ci/jenkins/bin/cmake_quiche.sh
+ ../ci/jenkins/bin/quiche.sh
'''
}
}
}
+ stage('Tests') {
+ steps {
+ echo 'Starting Tests'
+ dir('src') {
+ sh '''
+ set -x
+ set -e
+ source
../ci/jenkins/bin/environment.sh
+ ../ci/jenkins/bin/regression.sh
+ '''
+ }
+ echo 'Finished Tests'
+ }
+ }
}
post {
- always {
+ cleanup {
cleanWs()
}
}