audioshowkit/Jenkinsfile
Harrison d532b353c4
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
Renamed docs page in 'Jenkinsfile'
2023-05-03 08:43:24 -05:00

36 lines
1.1 KiB
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
sh 'node --version && npm --version'
sh 'npm install'
}
}
stage("test") {
steps {
sh '''
source ~/.bashrc
npm run test:junit
'''
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh 'npm run build:prod'
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
stage("generate docs") {
steps {
sh '''
source ~/.bashrc
npm run docs
'''
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
}
}
}