Skip to content

Commit

Permalink
Add testing stage on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jillguyonnet committed Feb 8, 2023
1 parent dec78ad commit e76bc7c
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,28 @@ pipeline {
Execute unit tests.
*/
stage('Test') {
steps {
cleanup()
withMageEnv(){
dir("${BASE_DIR}"){
sh(label: 'Runs the (unit) tests',script: 'mage -debug test|tee tests-report.txt')
parallel {
stage('Test on Linux') {
options { skipDefaultCheckout() }
steps {
cleanup()
withMageEnv(){
dir("${BASE_DIR}"){
sh(label: 'Runs the (unit) tests',script: 'mage -debug test|tee tests-report.txt')
}
}
}
}
stage('Test on Windows') {
agent { label 'windows-10' }
options { skipDefaultCheckout() }
steps {
cleanup()
withMageEnv(){
dir("${BASE_DIR}"){
sh(label: 'Runs the (unit) tests',script: 'mage -debug test|tee tests-report.txt')
}
}
}
}
}
Expand Down

0 comments on commit e76bc7c

Please sign in to comment.