add tests
This commit is contained in:
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
@@ -1,16 +1,22 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image "python:slim"
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'python:slim'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("install_dep") {
|
||||
steps {
|
||||
sh "pip install -r requirements/dev.txt"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('install_dep') {
|
||||
steps {
|
||||
sh 'pip install -r requirements/dev.txt && python manage.py migrate'
|
||||
}
|
||||
}
|
||||
|
||||
stage('tests') {
|
||||
steps {
|
||||
sh 'pytest -v'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user