diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000000000000000000000000000000000..76ea3dec6e4ea27dfe6ee95b89573d5d5e639ce4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +node { + + try { + stage('Checkout') { + checkout scm + } + stage('Test'){ + sh """ + virtualenv --python=python2.7 env + . env/bin/activate + pip install -r requirements.txt + pip install selenium + cp lmtweb/local_settings_sample.py lmtweb/local_settings.py + ./manage.py collectstatic + #./manage.py test lmtweb.tests.MySeleniumTests.test_login + #./manage.py test + """ + } + stage 'Build' + + } + + catch (err) { + + throw err + } + + finally { + sh """ + rm -rf static + """ + } +}