mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Adding travis config
This commit is contained in:
parent
578017e01d
commit
2af80a4811
20
.travis.yml
Normal file
20
.travis.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
language: python
|
||||
|
||||
python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
|
||||
env:
|
||||
- DJANGO=https://github.com/django/django/zipball/master TESTS='python setup.py test'
|
||||
- DJANGO=django==1.4.1 --use-mirrors TESTS='python setup.py test'
|
||||
- DJANGO=django==1.3.3 --use-mirrors TESTS='python setup.py test'
|
||||
|
||||
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
||||
install:
|
||||
- pip install $DJANGO
|
||||
- pip install -e . --use-mirrors
|
||||
- pip install -r requirements.txt
|
||||
|
||||
# command to run tests, e.g. python setup.py test
|
||||
script:
|
||||
- $TESTS
|
Loading…
Reference in New Issue
Block a user