forked from torchbox/wagtail-headless-preview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.14 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
language: python
cache: pip
# Use container-based infrastructure
dist: xenial
sudo: false
matrix:
fast_finish: true
include:
- env: LINT=1
python: 3.7
- env: TOXENV=py37-django22-wagtail26
python: 3.7
- env: TOXENV=py37-django22-wagtail25
python: 3.7
- env: TOXENV=py36-django21-wagtail24
python: 3.6
- env: TOXENV=py36-django21-wagtail23
python: 3.6
- env: TOXENV=py35-django20-wagtail24
python: 3.5
- env: TOXENV=py35-django20-wagtail23
python: 3.5
allow_failures:
- env: TOXENV=py37-djangomaster-wagtail26
- env: TOXENV=py37-djangomaster-wagtailmaster
install:
- if [[ $LINT ]]; then pip install wheel flake8 isort black; fi
- if [[ $TOXENV ]]; then pip install -e .[testing]; fi
script:
- if [[ $LINT ]]; then flake8 wagtail_headless_preview; fi
- if [[ $LINT ]]; then isort --check-only --diff --recursive wagtail_headless_preview; fi
- if [[ $LINT ]]; then black --check wagtail_headless_preview; fi
- test ${TOXENV} && nohup python3 -m http.server 8020 --directory wagtail_headless_preview/tests/client > /dev/null 2>&1 &
- if [[ $TOXENV ]]; then tox; fi