diff --git a/Jenkinsfile b/Jenkinsfile index 749922c..ddaf509 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } + + } } \ No newline at end of file