Compare commits

...

10 Commits

Author SHA1 Message Date
1efd0f4588 Switched over to to dedicated NodeJS container build environment
All checks were successful
audioshowkit/pipeline/head This commit looks good
2024-11-14 03:36:48 +00:00
e3361e25f5 Added devcontainer configurations and updated pipeline.
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2024-07-22 02:48:20 +00:00
d532b353c4 Renamed docs page in 'Jenkinsfile'
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-05-03 08:43:24 -05:00
677ca4ffdf Merge branch 'develop'
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-05-03 08:28:14 -05:00
97a01656a1 Updated pipeline to latest system
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-05-03 08:26:48 -05:00
676995b22c Merge branch 'develop'
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-04-08 12:35:47 -05:00
9b66d513c1 Removed unused pipeline steps
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-04-08 02:33:25 -05:00
95a3dfb4c3 Changed to using conda for CI
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
2023-04-08 01:58:07 -05:00
ce51ebf324 Changed Conda environment name to same as project.
Some checks failed
RealYHD/audioshowkit/pipeline/head There was a failure building this commit
ydeng/audioshowkit/pipeline/head There was a failure building this commit
2022-12-01 04:19:19 +00:00
48e2e08814 Updated README.md to direct to the correct link. 2022-11-30 04:04:50 +00:00
5 changed files with 51 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Node.js",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

3
.devcontainer/noop.txt Normal file
View File

@@ -0,0 +1,3 @@
This file copied into the container along with environment.yml* from the parent
folder. This file is included to prevents the Dockerfile COPY instruction from
failing if no environment.yml is found.

34
Jenkinsfile vendored
View File

@@ -1,40 +1,34 @@
pipeline {
agent any
agent {
kubernetes {
cloud 'rsys-devel'
defaultContainer 'nodejs'
inheritFrom 'nodejs'
}
}
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate webdev" >> ~/.bashrc'
sh 'node --version && npm --version'
sh 'npm install'
}
}
stage("test") {
steps {
sh '''
source ~/.bashrc
npm run test:junit
'''
junit 'junit/*.xml'
sh 'npm run test:junit'
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
}
}
stage("build") {
steps {
sh '''
source ~/.bashrc
npm run build:prod
'''
fingerprint "dist/**"
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
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: 'AudioShowKit Docs', reportTitles: ''])
sh 'npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
}
}

View File

@@ -4,7 +4,7 @@ A library that makes visualizing audio data live a much simpler process.
## Getting Started
As this library has not been published as a package, the best way to use it is to go to download the latest successful build artifact which can be [found here](https://dev.sys.reslate.xyz/dev-auto/job/AudioShowKit/job/master/). This build artifact is a minified and bundled version of all the components in the library.
As this library has not been published as a package, the best way to use it is to go to download the latest successful build artifact which can be [found here](https://sys.reslate.net/rho/ci/job/projects-reslate/job/audioshowkit/job/master/). This build artifact is a minified and bundled version of all the components in the library.
From here, add the downloaded javascript bundle to your html as you would any other javascript file:
```
@@ -13,6 +13,6 @@ From here, add the downloaded javascript bundle to your html as you would any ot
Now, any script that is loaded after the `audioshowkit.js` script loads will have access to the `audioshowkit` object. Prepared are three tutorials with demonstrations. I recommend starting with the Music Playlist tutorial.
## Documentation
## Resources
[The documentation can be found here](https://dev.sys.reslate.xyz/dev-auto/job/AudioShowKit/job/master/AudioShowKit_20Docs/) along with the rest of the tutorials and demonstrations.
The documentation along with latest stable build [can be found here](https://sys.reslate.net/rho/ci/job/projects-reslate/job/audioshowkit/job/master/). The documentation is accessible to on the left bar and the build artifact can be downloaded as a zip.

View File

@@ -1,16 +1,12 @@
name: webdev
name: audioshowkit
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
- ca-certificates
- icu
- libuv
- libzlib
- nodejs=20
- openssl
- zlib
prefix: ./env