From 0cd85b59bd41b7ecc95c57d91305fa79d43d4fa3 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Mon, 22 Jan 2018 20:50:30 +0530 Subject: [PATCH] Code coverage integration (#216) * Cleaner travis.yml? * Do we really need wget * pytest --cov * Add codecov badge --- .travis.yml | 34 +++++++++++++++++++++++++++++----- README.md | 1 + 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e2284b5..4092b7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 1214e6c..ce35930 100755 --- a/README.md +++ b/README.md @@ -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.