-
Notifications
You must be signed in to change notification settings - Fork 544
/
.travis.yml
43 lines (43 loc) · 2.22 KB
/
.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
39
40
41
42
43
language: python
python:
- 2.7
- 3.4
- 3.5
notifications:
email:
env:
# test the standalone functionality (skipping django 1.10 to minimize the number of machines used on Travis)
- DJANGO=">=1.8,<1.9" CUSTOM_USER_MODEL=0 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- DJANGO=">=1.8,<1.9" CUSTOM_USER_MODEL=1 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- DJANGO=">=1.9,<1.10" CUSTOM_USER_MODEL=0 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- DJANGO=">=1.9,<1.10" CUSTOM_USER_MODEL=1 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- DJANGO=">=1.11,<1.12" CUSTOM_USER_MODEL=0 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- DJANGO=">=1.11,<1.12" CUSTOM_USER_MODEL=1 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
matrix:
exclude:
- python: 3.5
env: DJANGO=">=1.8,<1.9" CUSTOM_USER_MODEL=0 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
- python: 3.5
env: DJANGO=">=1.8,<1.9" CUSTOM_USER_MODEL=1 MODE=standalone REQUIREMENTS=development7 SETTINGS=facebook_example.settings TESTS=django_facebook open_facebook
postgres:
adapter: sqlite3
database: django_fb_test
install:
# faster than installing PIL manually
- pip install pep8
- pip install coverage
- pip install python-coveralls
- pip install https://github.com/dcramer/pyflakes/tarball/master
- python setup.py install
- pip install -r facebook_example/requirements/$REQUIREMENTS.txt -I --allow-all-external
- pip install Django$DJANGO
before_script:
- "pep8 --exclude=south_migrations --ignore=E501,E225,W293,E731 django_facebook open_facebook"
# - pyflakes -x W src
script:
- pip uninstall -y django-facebook && pip install -e .
- cd facebook_example
- coverage run manage.py test $TESTS --settings=$SETTINGS -v2
after_success:
- coveralls