setup travis

This commit is contained in:
Kai Chen 2018-09-21 15:47:15 +08:00
parent 75ee2531a0
commit 923091b513

28
.travis.yml Normal file
View File

@ -0,0 +1,28 @@
dist: trusty
sudo: required
language: python
before_install:
- sudo add-apt-repository -y ppa:mc3man/trusty-media
- sudo apt-get update
- sudo apt-get install -y ffmpeg
install:
- pip install opencv-python pyyaml codecov
cache:
pip: true
env:
global:
- COLUMNS=80
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
script: coverage run --source=mmcv setup.py test
after_success: codecov