2022-04-17 06:37:34 +00:00
|
|
|
pipeline {
|
2022-04-16 08:22:01 +00:00
|
|
|
agent any
|
2022-04-17 06:37:34 +00:00
|
|
|
stages {
|
2022-04-16 08:22:01 +00:00
|
|
|
stage("install") {
|
|
|
|
steps {
|
2022-11-27 00:18:23 +00:00
|
|
|
sh '''#!/usr/bin/env pwsh
|
2022-11-27 06:57:51 +00:00
|
|
|
conda env create -q -f environment.yml
|
2022-11-27 00:18:23 +00:00
|
|
|
conda activate webdev
|
|
|
|
npm install
|
|
|
|
'''
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 21:13:23 +00:00
|
|
|
stage("tests") {
|
2022-04-16 08:22:01 +00:00
|
|
|
steps {
|
2022-11-27 00:18:23 +00:00
|
|
|
sh '''#!/usr/bin/env pwsh
|
|
|
|
conda activate webdev
|
|
|
|
npm run test:junit
|
|
|
|
'''
|
2022-04-18 12:39:59 +00:00
|
|
|
junit 'junit/*.xml'
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-19 00:31:34 +00:00
|
|
|
stage("build") {
|
2022-04-16 08:36:22 +00:00
|
|
|
steps {
|
2022-11-27 00:18:23 +00:00
|
|
|
sh '''#!/usr/bin/env pwsh
|
|
|
|
conda activate webdev
|
|
|
|
npm run build:prod
|
|
|
|
'''
|
2022-04-20 05:02:17 +00:00
|
|
|
fingerprint "dist/**"
|
2022-04-18 12:40:23 +00:00
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
2022-04-18 03:25:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 12:39:59 +00:00
|
|
|
stage("generate docs") {
|
|
|
|
steps {
|
2022-11-27 00:18:23 +00:00
|
|
|
sh '''#!/usr/bin/env pwsh
|
|
|
|
conda activate webdev
|
|
|
|
npm run docs
|
|
|
|
'''
|
2022-04-18 23:54:41 +00:00
|
|
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|