audioshowkit/Jenkinsfile
Harrison 95a3dfb4c3
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
Changed to using conda for CI
2023-04-08 01:58:07 -05:00

32 lines
1012 B
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'conda env update --file environment.yml'
sh 'echo "conda activate webdev" >> ~/.bashrc'
sh 'node --version && npm --version'
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: ''])
}
}
}
}