Added devcontainer configurations and updated pipeline.
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good

This commit is contained in:
2024-07-22 02:48:20 +00:00
parent d532b353c4
commit e3361e25f5
5 changed files with 58 additions and 26 deletions

27
Jenkinsfile vendored
View File

@@ -1,34 +1,33 @@
pipeline {
agent any
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
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'
sh 'conda update conda -y -q'
sh 'conda env update -n base --file environment.yml -q'
sh 'conda run -n base npm install'
}
}
stage("test") {
steps {
sh '''
source ~/.bashrc
npm run test:junit
'''
junit 'junit/*.xml'
sh 'conda run -n base npm run test:junit'
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
}
}
stage("build") {
steps {
sh 'npm run build:prod'
sh 'conda run -n base 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
'''
sh 'conda run -n base npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
}