audioshowkit/Jenkinsfile

30 lines
904 B
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml --prune'
sh 'npm install'
}
}
stage("test") {
steps {
sh 'npm run test:junit'
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh 'npm run build:prod'
fingerprint "dist/**"
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
}
}
stage("generate docs") {
steps {
sh 'npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
}
}
}
}