add tests
This commit is contained in:
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
@@ -1,16 +1,22 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image "python:slim"
|
image 'python:slim'
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
}
|
||||||
stage("install_dep") {
|
stages {
|
||||||
steps {
|
stage('install_dep') {
|
||||||
sh "pip install -r requirements/dev.txt"
|
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