-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
31 lines (27 loc) · 871 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
dist: trusty
language: python
python:
- "2.7"
- "3.5"
- "3.6"
install:
# Install ffmpeg
- sudo add-apt-repository -y ppa:mc3man/trusty-media
- sudo apt-get -y update
- sudo apt-get install -y ffmpeg
# Install flake8
- pip install flake8
# Install lib
- python setup.py install
# Grab test file
- curl -s -L -o livestream_assemble_test.tar.gz 'https://drive.google.com/uc?export=download&id=0B_RozRJ59Tp2TDJMSHQtdVJPeXM'
- mkdir test_assemble && tar -xzf livestream_assemble_test.tar.gz -C test_assemble/
script:
- flake8 --max-line-length=120 livestream_dl/
- livestream_dl -h
- livestream_as -o test_assemble/downloads/ -f test_assemble.mp4 -c test_assemble/sample_comments.json test_assemble/sample.json
- grep Bonjour test_assemble.srt
- ffprobe -v quiet -print_format json -show_format test_assemble.mp4
branches:
only:
- master