feat add test, benchmark

This commit is contained in:
tqcq 2024-07-19 10:36:47 +08:00 committed by tqcq
parent 346dfd731d
commit c365a76482

21
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent { agent {
docker { docker {
image 'tqcq/cross' image 'tqcq/cross'
} }
} }
@ -10,10 +10,10 @@ pipeline {
} }
stages { stages {
stage("Checkout") { stage('Checkout') {
steps { steps {
cleanWs() cleanWs()
checkout scm checkout scm
} }
} }
@ -22,14 +22,19 @@ pipeline {
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON' sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
} }
} }
stage('Build'){ stage('Build') {
steps { steps {
sh 'cmake --build build --target all -- -j`nproc --ignore=4`' sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
} }
} }
stage('Deploy') { stage('Test') {
steps { steps {
sh 'echo publish' sh 'cd build && ctest -j `nproc --ignore=4`'
}
}
stage('Benchmark') {
steps {
sh 'cd build && ./bin/tile_bm_all'
} }
} }
} }