Update Jenkinsfile
Some checks failed
carom/python3-carom-client/master There was a failure building this commit
Some checks failed
carom/python3-carom-client/master There was a failure building this commit
This commit is contained in:
parent
4052afa821
commit
5a86759efb
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -3,25 +3,35 @@ pipeline {
|
|||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('prepare') {
|
stage('prepare') {
|
||||||
|
steps {
|
||||||
sh 'pipenv install -d'
|
sh 'pipenv install -d'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('code style') {
|
stage('code style') {
|
||||||
|
steps {
|
||||||
sh 'pipenv run flake8 --max-line-length=120 --exclude=.venv/* .'
|
sh 'pipenv run flake8 --max-line-length=120 --exclude=.venv/* .'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('code complexity') {
|
stage('code complexity') {
|
||||||
|
steps {
|
||||||
sh 'pipenv run radon cc .'
|
sh 'pipenv run radon cc .'
|
||||||
sh 'pipenv run xenon -bB -mA -aA .'
|
sh 'pipenv run xenon -bB -mA -aA .'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('doc') {
|
stage('doc') {
|
||||||
|
steps {
|
||||||
dir ('doc') {
|
dir ('doc') {
|
||||||
sh 'pipenv run make html'
|
sh 'pipenv run make html'
|
||||||
sh 'pipenv run make man'
|
sh 'pipenv run make man'
|
||||||
}
|
}
|
||||||
archiveArtifacts artifacts: 'doc/man/*', fingerprint: true
|
archiveArtifacts artifacts: 'doc/man/*', fingerprint: true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('build') {
|
stage('build') {
|
||||||
|
steps {
|
||||||
sh 'pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o dist/carom-client'
|
sh 'pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o dist/carom-client'
|
||||||
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
archiveArtifacts artifacts: 'dist/*', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user