Set up conda environment.

This commit is contained in:
Harrison Deng 2022-11-27 00:18:23 +00:00
parent 4cc240c708
commit de877ed91c
2 changed files with 34 additions and 6 deletions

23
Jenkinsfile vendored
View File

@ -3,27 +3,38 @@ pipeline {
stages {
stage("install") {
steps {
sh "fnm install"
sh "fnm use"
sh "npm install"
sh '''#!/usr/bin/env pwsh
conda env create -f environment.yml
conda activate webdev
npm install
'''
}
}
stage("tests") {
steps {
sh "npm run test:junit"
sh '''#!/usr/bin/env pwsh
conda activate webdev
npm run test:junit
'''
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh "npm run build:prod"
sh '''#!/usr/bin/env pwsh
conda activate webdev
npm run build:prod
'''
fingerprint "dist/**"
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
}
}
stage("generate docs") {
steps {
sh "npm run docs"
sh '''#!/usr/bin/env pwsh
conda activate webdev
npm run docs
'''
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
}
}

17
environment.yml Normal file
View File

@ -0,0 +1,17 @@
name: webdev
channels:
- conda-forge
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=2_gnu
- ca-certificates=2022.9.24=ha878542_0
- icu=70.1=h27087fc_0
- libgcc-ng=12.2.0=h65d4601_19
- libgomp=12.2.0=h65d4601_19
- libstdcxx-ng=12.2.0=h46fd767_19
- libuv=1.44.2=h166bdaf_0
- libzlib=1.2.13=h166bdaf_4
- nodejs=18.12.1=h8839609_0
- openssl=3.0.7=h166bdaf_0
- zlib=1.2.13=h166bdaf_4
prefix: /home/conda/envs/webdev