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' } } }