-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1005 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: python
sudo: false
cache:
- apt
- pip
services:
- memcached
python:
- "2.7"
addons:
apt:
packages:
- python2-enchant
- graphviz
env:
global:
- DISPLAY=:99.0
matrix:
- DJANGO="Django<1.6,>=1.4"
matrix:
fast_finish: true
allow_failures:
- env: DJANGO="-e git+https://github.com/django/django.git@master#egg=Django"
install:
- pip install --upgrade pip
- pip install -e git+https://github.com/djkartsa/[email protected]_for_inline_formsets#egg=django-select2-4.2.2b0
- pip install -r requirements_dev.txt
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]] || [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install python-memcached; fi
- pip install $DJANGO
- pip install coveralls
- sh -e /etc/init.d/xvfb start
script:
- isort --check-only --recursive --diff .
- flake8 --jobs=2 .
- pep257 --explain --source --count django_select2_chained
- coverage run --source=django_select2_chained -m py.test tests
after_success:
- coveralls