21 lines
426 B
Groovy
21 lines
426 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh 'cd rest-app'
|
|
sh 'virtualenv venv'
|
|
sh '. venv/bin/activate'
|
|
sh 'pip3 install -r requirements.txt'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh 'cd rest-app'
|
|
sh 'python3 manage.py test'
|
|
}
|
|
}
|
|
}
|
|
}
|