-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
30 lines (30 loc) · 965 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
# Send this build to the travis.ci container-based infrastructure
# which typically has more capacity than the open-source Linux pool
sudo: false
# Tell Travis you want a Python environment to test in
language: python
# List the versions of Python you'd like to test against
python:
- "2.7"
- "3.4"
- "3.5"
# List the versions of Django you'd like to test against
env:
- WAGTAIL_VERSION=1.2
- WAGTAIL_VERSION=1.3
- WAGTAIL_VERSION=1.4
before_install:
- export DJANGO_SETTINGS_MODULE=tests.test_settings
- export PIP_USE_MIRRORS=true
# Tell it the things it will need to install when it boots
install:
# Install whatever version of Django that's listed above
# Travis is currently working on
- pip install wagtail==$WAGTAIL_VERSION
- pip install coveralls
- pip install flake8
# Tell Travis how to run the test script itself
script:
- flake8 streamfield_tools/
- coverage run --source=streamfield_tools/ runtests.py
after_success: coveralls