File tree Expand file tree Collapse file tree 3 files changed +21
-27
lines changed
Expand file tree Collapse file tree 3 files changed +21
-27
lines changed Original file line number Diff line number Diff line change 1111 - DJANGO=django==1.8.18
1212
1313install :
14- - pip install $DJANGO django-jinja==2.3.1 flake8
14+ - pip install $DJANGO django-jinja==2.3.1 flake8 coverage
1515
1616script :
1717 - flake8 bootstrapform_jinja/
18- - cd testing && python manage.py test
18+ - cd testing && coverage run --source=bootstrapform_jinja manage.py test && mv .coverage ..
19+
20+ after_success :
21+ - ls -lha
22+ - bash <(curl -s https://codecov.io/bash)
1923
2024deploy :
2125- provider : pypi
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ max-complexity = 10
66python-tag = py36
77
88[coverage:run]
9- source = pydantic
9+ source = bootstrapform_jinja
1010branch = True
1111
1212[coverage:report]
Original file line number Diff line number Diff line change 3232 }
3333}
3434
35- import django
36- if django .VERSION >= (1 , 8 ):
37- TEMPLATES = [
38- {
39- 'BACKEND' : 'django_jinja.backend.Jinja2' ,
40- 'APP_DIRS' : True ,
41- 'DIRS' : (
42- os .path .join (BASE_DIR , 'templates' ),
43- ),
44- 'OPTIONS' : {
45- 'match_extension' : '.jinja' ,
46- 'trim_blocks' : True ,
47- 'lstrip_blocks' : True ,
48- }
49- },
50- ]
51- else :
52- TEMPLATE_DIRS = (
53- os .path .join (BASE_DIR , 'templates' ),
54- )
55- TEMPLATE_LOADERS = (
56- 'django_jinja.loaders.FileSystemLoader' ,
57- 'django_jinja.loaders.AppLoader'
58- )
35+ TEMPLATES = [
36+ {
37+ 'BACKEND' : 'django_jinja.backend.Jinja2' ,
38+ 'APP_DIRS' : True ,
39+ 'DIRS' : (
40+ os .path .join (BASE_DIR , 'templates' ),
41+ ),
42+ 'OPTIONS' : {
43+ 'match_extension' : '.jinja' ,
44+ 'trim_blocks' : True ,
45+ 'lstrip_blocks' : True ,
46+ }
47+ },
48+ ]
You can’t perform that action at this time.
0 commit comments