diff --git a/jenkins.sh b/jenkins.sh new file mode 100755 index 0000000..eda0306 --- /dev/null +++ b/jenkins.sh @@ -0,0 +1,16 @@ +rm -f coverage.xml +rm -f test_results.xml + +export PIP_USE_WHEEL=no +pip install --upgrade pip +pip install --upgrade pylint==1.4.0 astroid==1.3.2 # 1.4.1 is buggy +pip install --upgrade pytest pytest-django pytest-cov webtest +pip install --upgrade 'git+http://repos.entrouvert.org/combo.git/' +pip install --upgrade 'git+http://repos.entrouvert.org/eopayment.git/' +pip install -e . + +DJANGO_SETTINGS_MODULE=combo.settings COMBO_SETTINGS_FILE=tests/settings.py py.test --junitxml=test_results.xml --cov-report xml --cov=lingo/ --cov-config .coveragerc tests/ + +test -f pylint.out && cp pylint.out pylint.out.prev +(pylint -f parseable --rcfile /var/lib/jenkins/pylint.django.rc lingo | tee pylint.out) || /bin/true +test -f pylint.out.prev && (diff pylint.out.prev pylint.out | grep '^[><]' | grep .py) || /bin/true diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 31a893d..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -django>=1.7, <1.8 -django-jsonfield -eopayment