lostplaces-backend/Jenkinsfile

33 lines
538 B
Plaintext
Raw Normal View History

2021-07-10 13:22:11 +02:00
pipeline {
agent any
2021-07-10 13:42:26 +02:00
environment {
// pyenv
PYENV_ROOT="$HOME/.pyenv"
PYENV_SHELL="bash"
// pipenv
PIPENV_YES="true"
PIPENV_NOSPIN="YES"
WORKON_HOME="$WORKSPACE/venv"
PATH="$PYENV_ROOT/bin:/opt/packer:$PATH"
}
2021-07-10 13:22:11 +02:00
stages {
2021-07-10 13:32:56 +02:00
stage('migration') {
2021-07-10 13:31:34 +02:00
steps {
script {
2021-07-10 13:32:56 +02:00
sh 'pipenv run makemigrations'
2021-07-10 13:31:34 +02:00
}
2021-07-10 13:30:10 +02:00
}
2021-07-10 13:22:11 +02:00
}
2021-07-10 13:32:56 +02:00
stage('build') {
2021-07-10 13:31:34 +02:00
steps {
script {
2021-07-10 13:32:56 +02:00
sh 'cd django_lostplaces'
sh 'python setup.py bdist_wheel --universal'
2021-07-10 13:31:34 +02:00
}
2021-07-10 13:30:10 +02:00
}
2021-07-10 13:22:11 +02:00
}
}
}