28 lines
412 B
Groovy
28 lines
412 B
Groovy
pipeline {
|
|
agent { docker { image 'kennethreitz/pipenv' } }
|
|
|
|
environment {
|
|
// pipenv
|
|
PIPENV_YES="true"
|
|
PIPENV_NOSPIN="YES"
|
|
}
|
|
|
|
stages {
|
|
stage('migration') {
|
|
steps {
|
|
script {
|
|
sh 'pipenv run makemigrations'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('build') {
|
|
steps {
|
|
script {
|
|
sh 'cd django_lostplaces'
|
|
sh 'python setup.py bdist_wheel --universal'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |