-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy path.travis.yml
34 lines (34 loc) · 1.06 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
language: python
#sudo: false
#virtualenv:
# system_site_packages: true
os:
- linux
sudo: required
dist: trusty
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:mc3man/trusty-media; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y ffmpeg; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y ffmpegthumbnailer; fi
#env:
# - DJANGO="Django>=1.11.0,<1.12.0"
python:
- "3.5"
- "3.6"
services:
- elasticsearch
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install flake8
before_script:
- sleep 10
- "flake8 --max-complexity=7 --exclude .git,pod/*/migrations/*.py,test_settings.py"
# command to run tests
script:
- python manage.py create_pod_index
- python manage.py makemigrations
- python manage.py migrate
- python manage.py test --settings=pod.main.test_settings
# - pytest # or py.test for Python versions 3.5 and below