You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
727 B

pipeline {
agent any
environment {
PATH = "/opt/cabal/bin:/opt/ghc/bin:$PATH"
}
stages {
stage('prepare') {
steps {
sh 'cabal v2-clean'
}
}
stage('build') {
steps {
sh 'cabal v2-build --enable-documentation'
}
}
stage('test') {
steps {
sh 'cabal v2-test --test-options=--xml=test-report.xml'
}
}
}
post {
success {
archiveArtifacts 'dist-newstyle/build/*/ghc-*/prosidy-*/doc/html/prosidy/**'
}
always {
junit 'test-report.xml'
}
}
}
// code: language=Jenkinsfile