Code coverage integration (#216)

* Cleaner travis.yml?

* Do we really need wget

* pytest --cov

* Add codecov badge
This commit is contained in:
Ritiek Malhotra
2018-01-22 20:50:30 +05:30
committed by GitHub
parent fcfebc55e6
commit 0cd85b59bd
2 changed files with 30 additions and 5 deletions

View File

@@ -4,12 +4,36 @@ python:
- "3.4"
- "3.5"
- "3.6"
install:
before_install:
- sudo apt-get -qq update
- sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev
- sudo apt-get -y install yasm nasm libmp3lame-dev
- pip install -r requirements.txt
- pip install tinydownload
- pip install codecov
- pip install pytest-cov
addons:
apt:
packages:
- automake
- autoconf
- build-essential
- libass-dev
- libfreetype6-dev
- libtheora-dev
- libtool
- libva-dev
- libvdpau-dev
- libvorbis-dev
- libxcb1-dev
- libxcb-shm0-dev
- libxcb-xfixes0-dev
- pkg-config
- texinfo
- zlib1g-dev
- yasm
- nasm
- libmp3lame-dev
install:
- pip install -r requirements.txt
- tinydownload 05861434675432854607 -o ~/bin/ffmpeg
- chmod 755 ~/bin/ffmpeg
script: python -m pytest test
script: python -m pytest test --cov=.
after_success: codecov

View File

@@ -1,6 +1,7 @@
# Spotify-Downloader
[![Build Status](https://travis-ci.org/ritiek/spotify-downloader.svg?branch=master)](https://travis-ci.org/ritiek/spotify-downloader)
[![Coverage Status](https://codecov.io/gh/ritiek/spotify-downloader/branch/master/graph/badge.svg)](https://codecov.io/gh/ritiek/spotify-downloader)
[![Docker Build Status](https://img.shields.io/docker/build/ritiek/spotify-downloader.svg)](https://hub.docker.com/r/ritiek/spotify-downloader)
- Downloads songs from YouTube in an MP3 format by using Spotify's HTTP link.