diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..538f733 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + + options { + skipDefaultCheckout() + } + + stages { + stage('Checkout') { + steps { + checkout scm + } + } + + stage('Syntax check') { + steps { + sh 'python3 -m py_compile pricing.py' + } + } + + stage('Test') { + steps { + sh 'python3 -m unittest discover -s tests -v' + } + } + } +} \ No newline at end of file