From c365a76482d61db55b524e0b72a98d4fa712f0ca Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 19 Jul 2024 10:36:47 +0800 Subject: [PATCH] feat add test, benchmark --- Jenkinsfile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 44d41ca..d922949 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { - agent { + agent { docker { - image 'tqcq/cross' + image 'tqcq/cross' } } @@ -10,10 +10,10 @@ pipeline { } stages { - stage("Checkout") { + stage('Checkout') { steps { - cleanWs() - checkout scm + cleanWs() + checkout scm } } @@ -22,14 +22,19 @@ pipeline { sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON' } } - stage('Build'){ + stage('Build') { steps { sh 'cmake --build build --target all -- -j`nproc --ignore=4`' } } - stage('Deploy') { + stage('Test') { steps { - sh 'echo publish' + sh 'cd build && ctest -j `nproc --ignore=4`' + } + } + stage('Benchmark') { + steps { + sh 'cd build && ./bin/tile_bm_all' } } }