Skip to content

Commit 7717477

Browse files
author
Alexandr Shurigin
committed
added travis support and image into readme file.
1 parent 7421b00 commit 7717477

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
- "2.7"
5+
env:
6+
# - DJANGO=1.2
7+
# - DJANGO=1.3
8+
- DJANGO=1.4
9+
- DJANGO=1.5
10+
- DJANGO=1.6
11+
install:
12+
- pip install -q Django==$DJANGO
13+
script:
14+
- python setup.py test

README.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Django Macros Url makes it easy to write (and read) url patterns in your django
44

55
You can combine your prefixes with macro names with underscope, for example you can use macro `:slug` and `:product_slug`. They both will be compiled to same regex pattern with their group names of course. Multiple underscopes accepted too.
66

7+
<img src="https://travis-ci.org/phpdude/django-macros-url.svg?branch=master" />
8+
79
### Supported macros by default
810

911
```

tests/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import unittest
21
import uuid
32

43
from django.conf import settings
54
from django.conf.urls import include
5+
from django.utils import unittest
66

77
from macrosurl import MacroUrlPattern, url
88

0 commit comments

Comments
 (0)