d10_cs_generator/Jenkinsfile

36 lines
929 B
Groovy

pipeline {
agent any
options {
skipDefaultCheckout(true)
timestamps()
}
stages {
stage('Checkout') {
steps {
deleteDir()
checkout scm
}
}
stage('Dependencies') {
steps {
sh 'python3 -m venv .venv'
sh '.venv/bin/python -m pip install -r requirements.txt'
}
}
stage('Build and verify') {
steps {
sh '.venv/bin/python -m unittest discover -s tests -v'
sh '.venv/bin/python tools/publish_builds.py'
sh 'D10_BUILD_ROOT=RPG/d10_character_sheet node tests/test_tabs.mjs'
}
}
stage('Publish') {
steps {
archiveArtifacts artifacts: 'RPG/d10_character_sheet/**', fingerprint: true, onlyIfSuccessful: true
}
}
}
}