-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
41 lines (36 loc) · 1.56 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
40
41
dist: trusty
language: python
cache: pip
python:
- "2.7"
- "3.5"
- "3.6"
before_install:
- sudo add-apt-repository -y ppa:mc3man/trusty-media
- sudo apt-get -y update
- sudo apt-get install -y ffmpeg
# Download mpd for live testing
- curl -s -L -o mpdstub.tar.gz 'https://drive.google.com/uc?export=download&id=1X3avLfZWzRnjIo5GECjNRqRmAnAv2Gpe'
- mkdir mpdstub && tar -xzf mpdstub.tar.gz -C mpdstub/
# Download replay files for replay testing
- curl --retry 2 -s -L -o replaystub.tar.gz 'https://drive.google.com/uc?export=download&id=143OZeqaCFG6TU0fEjx3Spf3JhA-YKxk3'
- tar -xzf replaystub.tar.gz -C mpdstub/
- if [[ ${TRAVIS_PYTHON_VERSION:0:1} == '3' ]]; then ((cd mpdstub && python -m http.server 8000) &); fi
- if [[ ${TRAVIS_PYTHON_VERSION:0:1} == '2' ]]; then ((cd mpdstub && python -m SimpleHTTPServer 8000) &); fi
# Download media files for media testing
- mkdir media
- curl --retry 2 -s -o 'media/test.jpg' 'https://c2.staticflickr.com/6/5267/5669212075_039ed45bff_z.jpg'
- curl --retry 2 -s -o 'media/test.mp4' 'https://raw.githubusercontent.com/johndyer/mediaelement-files/master/big_buck_bunny.mp4'
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install coveralls
script:
- flake8 --max-line-length=120 instagram_private_api_extensions --exclude=./instagram_private_api_extensions/compat.py
- pylint -E instagram_private_api_extensions
- coverage run --source=instagram_private_api_extensions -m unittest discover -s tests -v
after_success:
coveralls
branches:
only:
- master