Robert Einsle
8a5ff5410d
Some checks failed
carom/python3-carom-client/master There was a failure building this commit
38 lines
1016 B
Groovy
38 lines
1016 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('prepare') {
|
|
steps {
|
|
sh 'pipenv install -d'
|
|
}
|
|
}
|
|
stage('code style') {
|
|
steps {
|
|
sh 'pipenv run flake8 --max-line-length=120 --exclude=.venv/* .'
|
|
}
|
|
}
|
|
stage('code complexity') {
|
|
steps {
|
|
sh 'pipenv run radon cc .'
|
|
sh 'pipenv run xenon -bB -mA -aA .'
|
|
}
|
|
}
|
|
stage('doc') {
|
|
steps {
|
|
dir ('doc') {
|
|
sh 'pipenv run make html'
|
|
sh 'pipenv run make man'
|
|
}
|
|
archiveArtifacts artifacts: 'doc/man/*', fingerprint: true
|
|
}
|
|
}
|
|
stage('build') {
|
|
steps {
|
|
sh 'pipenv lock'
|
|
sh 'pipenv run pex . -e carom.cli:cli -o dist/carom-client'
|
|
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
} |