File tree 7 files changed +40
-83
lines changed
7 files changed +40
-83
lines changed Original file line number Diff line number Diff line change 8
8
example.db
9
9
10
10
jenkins_reports /*
11
+ .coverage
12
+ coverage.xml
13
+ nosetests.xml
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # verify user provided a name for the virtualenv
4
+ if [ -z " $1 " ]; then
5
+ echo " usage: $0 virtual_env_name"
6
+ exit
7
+ fi
8
+
9
+ VIRTUALENV_NAME=$1
10
+
11
+ virtualenv $VIRTUALENV_NAME
12
+ . $VIRTUALENV_NAME /bin/activate
13
+
14
+ find . -name " *.pyc" -delete
15
+ python setup.py install_dev
16
+
17
+ python example/manage.py test --with-xunit --with-xcover --cover-package=dynamic_rules
18
+ TEST_EXIT=$?
19
+ rm -rf jenkins_reports
20
+ mkdir jenkins_reports
21
+ pep8 dynamic_rules > jenkins_reports/pep8.report
22
+ PEP8_EXIT=$?
23
+ pyflakes dynamic_rules > jenkins_reports/pyflakes.report
24
+ PYFLAKES_EXIT=$?
25
+ let JENKINS_EXIT=" $TEST_EXIT + $PEP8_EXIT + $PYFLAKES_EXIT "
26
+ if [ $JENKINS_EXIT -gt 2 ]; then
27
+ echo " Test exit status:" $TEST_EXIT
28
+ echo " PEP8 exit status:" $PEP8_EXIT
29
+ echo " Pyflakes exit status:" $PYFLAKES_EXIT
30
+ echo " Exiting Build with status:" $EXIT
31
+ exit $JENKINS_EXIT
32
+ fi
Original file line number Diff line number Diff line change 1
-
2
- from dynamic_rules .tests .test_registry import *
3
- from dynamic_rules .tests .test_admin_forms import *
4
- from dynamic_rules .tests .test_models import *
5
- from dynamic_rules .tests .test_dynamic_actions import *
6
- from dynamic_rules .tests .test_ext import *
Original file line number Diff line number Diff line change 38
38
39
39
'dynamic_rules' ,
40
40
'sample' ,
41
+ 'django_nose' ,
41
42
)
42
43
44
+ TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
45
+
43
46
try :
44
47
import south
45
48
INSTALLED_APPS = ('south' , ) + INSTALLED_APPS
46
49
SOUTH_TESTS_MIGRATE = False
47
50
except ImportError :
48
51
pass
49
-
50
- try :
51
- import django_jenkins
52
- PROJECT_APPS = [app for app in INSTALLED_APPS if not app .startswith ('django.contrib' )]
53
-
54
- INSTALLED_APPS = INSTALLED_APPS + ('django_jenkins' ,)
55
- JENKINS_TASKS = (
56
- 'django_jenkins.tasks.django_tests' ,
57
- 'django_jenkins.tasks.run_pylint' ,
58
- 'django_jenkins.tasks.run_pep8' ,
59
- 'django_jenkins.tasks.run_pyflakes' ,
60
- 'django_jenkins.tasks.with_coverage' ,
61
- )
62
-
63
- except ImportError :
64
- pass
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
14
14
TEST_REQUIREMENTS = [
15
15
'mock' ,
16
- 'django-jenkins' ,
17
16
'pep8' ,
18
17
'pyflakes' ,
18
+ 'django_nose' ,
19
+ 'nosexcover' ,
19
20
]
20
21
21
22
def do_setup ():
You can’t perform that action at this time.
0 commit comments