develop #4

Merged
s460930 merged 29 commits from develop into master 2020-12-07 15:22:26 +01:00
Showing only changes of commit ef8aeaab20 - Show all commits

17
Jenkinsfile vendored
View File

@ -1,18 +1,17 @@
pipeline { pipeline {
agent any agent { docker { image 'python:3.7.2' } }
stages { stages {
stage('Build') { stage('Build and test') {
steps { steps {
sh 'cd rest-app' sh 'pwd'
sh 'pip3 install -r requirements.txt' sh 'ls'
dir("${env.WORKSPACE}/rest-app"){
sh 'pwd'
sh 'ls'
sh 'python3 -m venv venv && . venv/bin/activate && pip3 install -r requirements.txt && python3 manage.py migrate && python3 manage.py test'
} }
} }
stage('Test') {
steps {
sh 'cd rest-app'
sh 'python3 manage.py test'
}
} }
} }
} }