diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1c5913e..fe615b1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,10 +16,10 @@ jobs: strategy: matrix: include: - # - os: ubuntu-latest - # compiler: gcc - # - os: ubuntu-latest - # compiler: clang + - os: ubuntu-latest + compiler: gcc + - os: ubuntu-latest + compiler: clang - os: windows-latest compiler: msvc # - os: macos-latest diff --git a/ci/jenkins/Jenkinsfile.groovy b/ci/jenkins/Jenkinsfile.groovy index 4866c6d..a76bdaa 100644 --- a/ci/jenkins/Jenkinsfile.groovy +++ b/ci/jenkins/Jenkinsfile.groovy @@ -24,633 +24,662 @@ pipeline { stage('Build') { parallel { - stage('Ubuntu Noble') { - agent { - dockerfile { - filename 'Dockerfile.ubuntu-noble' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } + stage('macOS') { + agent {label 'macos'} - options { - timeout(time: 30, unit: "MINUTES") - } + // environment { + // CPPFLAGS = "-I/usr/local/opt/openssl/include -I/usr/local/opt/zlib/include -I/usr/local/opt/boost/include/" + // LDFLAGS = "-L/usr/local/opt/openssl/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/boost/lib/" + // } steps { - echo "Building on ubuntu-noble-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" + echo "Building on macos in ${WORKSPACE}" + brew install openssl boost zlib rapidjson gtest cmake ninja checkout scm sh 'pwd; ls -la' sh 'rm -rf build' sh 'mkdir build' - sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' + sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DBOOST_LIBRARIES=/usr/local/opt/boost/lib -DBOOSTL_ROOT_DIR=/usr/local/opt/boost -DZLIB_INCLUDE_DIRS=/usr/local/opt/zlib/include/ -DZLIB_LIBRARIES=/usr/local/opt/zlib/lib/ .. && make -j4' echo 'Getting ready to run tests' script { try { sh 'cd build && ctest --no-compress-output -T Test' } catch (exc) { - - unstable(message: "${STAGE_NAME} - Testing failed") + echo 'Testing failed' + currentBuild.result = 'UNSTABLE' } } } } - stage('Ubuntu Noble MT CTX') { - agent { - dockerfile { - filename 'Dockerfile.ubuntu-noble' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } - - options { - timeout(time: 30, unit: "MINUTES") - } - - steps { - echo "Building on ubuntu-noble-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { - - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Ubuntu Noble') { +// agent { +// dockerfile { +// filename 'Dockerfile.ubuntu-noble' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Ubuntu Jammy') { - agent { - dockerfile { - filename 'Dockefile.ubuntu-jammy' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on ubuntu-noble-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on ubuntu-jammy-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Ubuntu Noble MT CTX') { +// agent { +// dockerfile { +// filename 'Dockerfile.ubuntu-noble' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Ubuntu Jammy MT CTX') { - agent { - dockerfile { - filename 'Dockefile.ubuntu-jammy' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on ubuntu-noble-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on ubuntu-jammy-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Ubuntu Jammy') { +// agent { +// dockerfile { +// filename 'Dockefile.ubuntu-jammy' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Ubuntu Bionic') { - agent { - dockerfile { - filename 'Dockerfile.ubuntu-bionic' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on ubuntu-jammy-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on ubuntu-bionic-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" - checkout scm - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Ubuntu Jammy MT CTX') { +// agent { +// dockerfile { +// filename 'Dockefile.ubuntu-jammy' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Buster ') { - agent { - dockerfile { - filename 'Dockefile.debian-buster' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on ubuntu-jammy-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-buster-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Ubuntu Bionic') { +// agent { +// dockerfile { +// filename 'Dockerfile.ubuntu-bionic' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Buster MT CTX') { - agent { - dockerfile { - filename 'Dockefile.debian-buster' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on ubuntu-bionic-AMD64 in ${NODE_NAME} --> ${WORKSPACE}" +// checkout scm +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-buster-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Buster ') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-buster' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Buster MT CTX C++14') { - agent { - dockerfile { - filename 'Dockefile.debian-buster' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on debian-buster-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-buster-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP14=ON .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Buster MT CTX') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-buster' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Bullseye') { - agent { - dockerfile { - filename 'Dockefile.debian-bullseye' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } +// steps { +// echo "Building on debian-buster-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - options { - timeout(time: 30, unit: "MINUTES") - } +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - steps { - echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// stage('Debian Buster MT CTX C++14') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-buster' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - stage('Debian Bullseye MT CTX') { - agent { - dockerfile { - filename 'Dockefile.debian-bullseye' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// steps { +// echo "Building on debian-buster-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DGTEST_TAG=release-1.12.0 -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release -DRESTC_CPP_USE_CPP14=ON .. && make -j $(nproc)' - options { - timeout(time: 30, unit: "MINUTES") - } +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - steps { - echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// stage('Debian Bullseye') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-bullseye' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } - stage('Debian Bookworm') { - agent { - dockerfile { - filename 'Dockefile.debian-bookworm' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Bullseye MT CTX') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-bullseye' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Bookworm MT CTX') { - agent { - dockerfile { - filename 'Dockefile.debian-bookworm' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on debian-bullseye-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Bookworm') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-bookworm' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Testing') { - agent { - dockerfile { - filename 'Dockefile.debian-testing' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-testing-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Bookworm MT CTX') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-bookworm' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Debian Testing MT CTX') { - agent { - dockerfile { - filename 'Dockefile.debian-testing' - dir 'ci/jenkins' - label 'docker' - args '-u root' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - options { - timeout(time: 30, unit: "MINUTES") - } +// steps { +// echo "Building on debian-bookworm-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - steps { - echo "Building on debian-testing-AMD64 in ${WORKSPACE}" - checkout scm - sh 'pwd; ls -la' - sh 'rm -rf build' - sh 'mkdir build' - sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - echo 'Getting ready to run tests' - script { - try { - sh 'cd build && ctest --no-compress-output -T Test' - } catch (exc) { +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// stage('Debian Testing') { +// agent { +// dockerfile { +// filename 'Dockefile.debian-testing' +// dir 'ci/jenkins' +// label 'docker' +// args '-u root' +// } +// } - stage('Fedora CTX') { - agent { - dockerfile { - filename 'Dockerfile.fedora' - dir 'ci/jenkins' - label 'docker' - } - } +// options { +// timeout(time: 30, unit: "MINUTES") +// } - steps { - echo "Building on Fedora in ${WORKSPACE}" - checkout scm - sh 'set -x' - sh 'rm -rf build-fedora' - sh 'mkdir build-fedora' - sh 'cd build-fedora && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && cmake --build . -j $(nproc)' +// steps { +// echo "Building on debian-testing-AMD64 in ${WORKSPACE}" +// checkout scm +// sh 'pwd; ls -la' +// sh 'rm -rf build' +// sh 'mkdir build' +// sh 'cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' - echo 'Getting ready to run tests' - script { - try { - sh 'cd build-fedora && ctest --no-compress-output -T Test' - } catch (exc) { +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build && ctest --no-compress-output -T Test' +// } catch (exc) { - unstable(message: "${STAGE_NAME} - Testing failed") - } - } +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - sh 'rm -rf build-fedora' - } - } -// -// stage('Centos7') { +// stage('Debian Testing MT CTX') { // agent { // dockerfile { -// filename 'Dockerfile.centos7' +// filename 'Dockefile.debian-testing' // dir 'ci/jenkins' // label 'docker' +// args '-u root' // } // } -// + +// options { +// timeout(time: 30, unit: "MINUTES") +// } + // steps { -// echo "Building on Centos7 in ${WORKSPACE}" +// echo "Building on debian-testing-AMD64 in ${WORKSPACE}" // checkout scm // sh 'pwd; ls -la' // sh 'rm -rf build' // sh 'mkdir build' -// sh 'cd build && source scl_source enable devtoolset-7 && cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/opt/boost .. && make' -// +// sh 'cd build && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && make -j $(nproc)' + // echo 'Getting ready to run tests' // script { // try { // sh 'cd build && ctest --no-compress-output -T Test' // } catch (exc) { -// + // unstable(message: "${STAGE_NAME} - Testing failed") // } // } // } // } - stage('Windows X64 with vcpkg') { +// stage('Fedora CTX') { +// agent { +// dockerfile { +// filename 'Dockerfile.fedora' +// dir 'ci/jenkins' +// label 'docker' +// } +// } - agent {label 'windows'} +// steps { +// echo "Building on Fedora in ${WORKSPACE}" +// checkout scm +// sh 'set -x' +// sh 'rm -rf build-fedora' +// sh 'mkdir build-fedora' +// sh 'cd build-fedora && cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_BUILD_TYPE=Release .. && cmake --build . -j $(nproc)' - options { - // vcpkg now installs and compiles pretty much everything that exists on github if you ask it to prepare boost and openssl. - // It's becoming as bad as js and npm. - timeout(time: 60, unit: "MINUTES") - } +// echo 'Getting ready to run tests' +// script { +// try { +// sh 'cd build-fedora && ctest --no-compress-output -T Test' +// } catch (exc) { - steps { - echo "Building on Windows in ${WORKSPACE}" - checkout scm +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } - bat script: ''' - PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\src\\vcpkg;C:\\Program Files\\Git\\bin - vcpkg integrate install - vcpkg install rapidjson gtest zlib openssl boost --triplet x64-windows - if %errorlevel% neq 0 exit /b %errorlevel% - rmdir /S /Q build - mkdir build - cd build - cmake -DCMAKE_TOOLCHAIN_FILE=C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake .. - if %errorlevel% neq 0 exit /b %errorlevel% - cmake --build . --config Release - if %errorlevel% neq 0 exit /b %errorlevel% - echo "Build is OK" - ''' +// sh 'rm -rf build-fedora' +// } +// } +// // +// // stage('Centos7') { +// // agent { +// // dockerfile { +// // filename 'Dockerfile.centos7' +// // dir 'ci/jenkins' +// // label 'docker' +// // } +// // } +// // +// // steps { +// // echo "Building on Centos7 in ${WORKSPACE}" +// // checkout scm +// // sh 'pwd; ls -la' +// // sh 'rm -rf build' +// // sh 'mkdir build' +// // sh 'cd build && source scl_source enable devtoolset-7 && cmake -DCMAKE_BUILD_TYPE=Release -DBOOST_ROOT=/opt/boost .. && make' +// // +// // echo 'Getting ready to run tests' +// // script { +// // try { +// // sh 'cd build && ctest --no-compress-output -T Test' +// // } catch (exc) { +// // +// // unstable(message: "${STAGE_NAME} - Testing failed") +// // } +// // } +// // } +// // } + +// stage('Windows X64 with vcpkg') { + +// agent {label 'windows'} + +// options { +// // vcpkg now installs and compiles pretty much everything that exists on github if you ask it to prepare boost and openssl. +// // It's becoming as bad as js and npm. +// timeout(time: 60, unit: "MINUTES") +// } - echo 'Getting ready to run tests' - script { - try { - bat script: ''' - PATH=%PATH%;C:\\src\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin - cd build - ctest -C Release - if %errorlevel% neq 0 exit /b %errorlevel% - ''' - } catch (exc) { +// steps { +// echo "Building on Windows in ${WORKSPACE}" +// checkout scm - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// bat script: ''' +// PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\src\\vcpkg;C:\\Program Files\\Git\\bin +// vcpkg integrate install +// vcpkg install rapidjson gtest zlib openssl boost --triplet x64-windows +// if %errorlevel% neq 0 exit /b %errorlevel% +// rmdir /S /Q build +// mkdir build +// cd build +// cmake -DCMAKE_TOOLCHAIN_FILE=C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake .. +// if %errorlevel% neq 0 exit /b %errorlevel% +// cmake --build . --config Release +// if %errorlevel% neq 0 exit /b %errorlevel% +// echo "Build is OK" +// ''' - stage('Windows X64 with vcpkg MT CTX') { +// echo 'Getting ready to run tests' +// script { +// try { +// bat script: ''' +// PATH=%PATH%;C:\\src\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin +// cd build +// ctest -C Release +// if %errorlevel% neq 0 exit /b %errorlevel% +// ''' +// } catch (exc) { - agent {label 'windows'} +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } - options { - // vcpkg now installs and compiles pretty much everything that exists on github if you ask it to prepare boost and openssl. - // It's becoming as bad as js and npm. - timeout(time: 60, unit: "MINUTES") - } +// stage('Windows X64 with vcpkg MT CTX') { - steps { - echo "Building on Windows in ${WORKSPACE}" - checkout scm +// agent {label 'windows'} - bat script: ''' - PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\src\\vcpkg;C:\\Program Files\\Git\\bin - vcpkg integrate install - vcpkg install rapidjson gtest zlib openssl boost --triplet x64-windows - if %errorlevel% neq 0 exit /b %errorlevel% - rmdir /S /Q build - mkdir build - cd build - cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_TOOLCHAIN_FILE=C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake .. - if %errorlevel% neq 0 exit /b %errorlevel% - cmake --build . --config Release - if %errorlevel% neq 0 exit /b %errorlevel% - echo "Build is OK" - ''' +// options { +// // vcpkg now installs and compiles pretty much everything that exists on github if you ask it to prepare boost and openssl. +// // It's becoming as bad as js and npm. +// timeout(time: 60, unit: "MINUTES") +// } - echo 'Getting ready to run tests' - script { - try { - bat script: ''' - PATH=%PATH%;C:\\src\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin - cd build - ctest -C Release - if %errorlevel% neq 0 exit /b %errorlevel% - ''' - } catch (exc) { +// steps { +// echo "Building on Windows in ${WORKSPACE}" +// checkout scm - unstable(message: "${STAGE_NAME} - Testing failed") - } - } - } - } +// bat script: ''' +// PATH=%PATH%;C:\\Program Files\\CMake\\bin;C:\\src\\vcpkg;C:\\Program Files\\Git\\bin +// vcpkg integrate install +// vcpkg install rapidjson gtest zlib openssl boost --triplet x64-windows +// if %errorlevel% neq 0 exit /b %errorlevel% +// rmdir /S /Q build +// mkdir build +// cd build +// cmake -DRESTC_CPP_THREADED_CTX=ON -DCMAKE_TOOLCHAIN_FILE=C:/src/vcpkg/scripts/buildsystems/vcpkg.cmake .. +// if %errorlevel% neq 0 exit /b %errorlevel% +// cmake --build . --config Release +// if %errorlevel% neq 0 exit /b %errorlevel% +// echo "Build is OK" +// ''' + +// echo 'Getting ready to run tests' +// script { +// try { +// bat script: ''' +// PATH=%PATH%;C:\\src\\vcpkg\\installed\\x64-windows\\bin;C:\\Program Files\\CMake\\bin +// cd build +// ctest -C Release +// if %errorlevel% neq 0 exit /b %errorlevel% +// ''' +// } catch (exc) { + +// unstable(message: "${STAGE_NAME} - Testing failed") +// } +// } +// } +// } } // parallel