From 4052afa821476349a8d696b06df8d7a44a80bbae Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Tue, 5 Mar 2019 15:03:10 +0100 Subject: [PATCH] add Jenkinsfile --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c556559 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + + stages { + stage('prepare') { + sh 'pipenv install -d' + } + stage('code style') { + sh 'pipenv run flake8 --max-line-length=120 --exclude=.venv/* .' + } + stage('code complexity') { + sh 'pipenv run radon cc .' + sh 'pipenv run xenon -bB -mA -aA .' + } + stage('doc') { + dir ('doc') { + sh 'pipenv run make html' + sh 'pipenv run make man' + } + archiveArtifacts artifacts: 'doc/man/*', fingerprint: true + } + stage('build') { + sh 'pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o dist/carom-client' + archiveArtifacts artifacts: 'dist/*', fingerprint: true + } + } +} \ No newline at end of file