forked from neon-jungle/wagtail-videos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 851 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
39
40
41
42
dist: xenial
language: python
cache: pip
env:
global:
- DJANGO_SETTINGS_MODULE="tests.app.settings"
- TOX_ENV=
matrix:
- TOX_ENV=flake8,isort
python:
- 3.5
- 3.6
env:
- DJANGO='20' WAGTAIL='24'
- DJANGO='21' WAGTAIL='24'
matrix:
include:
- env: TOX_ENV='flake8,isort'
python: 3.5
before_install:
- sudo apt-get update -qq
# The install of ffmpeg fails at random with 'There were unauthenticated packages' 🤷♂️
- sudo apt-get install ffmpeg --allow-unauthenticated -y
install:
- pip install --upgrade pip wheel tox
cache:
directories:
- $HOME/.cache/pip
- $HOME/virtualenv
script:
# Run tox using either a specific environment from TOX_ENV,
# or building one from the environment variables
- tox -e "${TOX_ENV:-py${TRAVIS_PYTHON_VERSION/./}-dj${DJANGO}-wt${WAGTAIL}}"