From 04196e36b79a03cedb9323f8c5a1a85ee1a2d063 Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Mon, 13 Mar 2017 21:03:03 -0700 Subject: [PATCH] Added tests for coveralls with Travis CI --- .travis.yml | 15 ++++++++------- setup.py | 2 +- tests/{tests_readme.md => README.md} | 0 tests/test_all.py | 7 +++++++ 4 files changed, 16 insertions(+), 8 deletions(-) rename tests/{tests_readme.md => README.md} (100%) create mode 100644 tests/test_all.py diff --git a/.travis.yml b/.travis.yml index bd4c3d8..05083b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,15 +5,16 @@ python: before_script: - sudo aptitude -y -q install ffmpeg libavcodec-extra-53 lame libmp3lame0 -# These dependencies are necessary for ffmpeg. I currently hate all things -# doing with Travis and ffmpeg because I have no direct access to test stuff. -# I've gone through 25 seperate commits to get it working. + # These dependencies are necessary for ffmpeg. I currently hate all things + # doing with Travis and ffmpeg because I have no direct access to test stuff. + # I've gone through 25 seperate commits to get it working. install: - pip install irs + - pip install coveralls # For coveralls.io script: - - python tests/song.py - - python tests/album.py - - python tests/playlist.py - - python tests/post_processors.py \ No newline at end of file + - coverage run --source=irs test/test_all.py + +after_success: + - coveralls \ No newline at end of file diff --git a/setup.py b/setup.py index b385260..4d720b4 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='irs', - version='6.1.1', + version='6.1.2', description='A music downloader that just gets metadata.', url='https://github.com/kepoorhampond/irs', author='Kepoor Hampond', diff --git a/tests/tests_readme.md b/tests/README.md similarity index 100% rename from tests/tests_readme.md rename to tests/README.md diff --git a/tests/test_all.py b/tests/test_all.py new file mode 100644 index 0000000..6b979d8 --- /dev/null +++ b/tests/test_all.py @@ -0,0 +1,7 @@ +from os import system, chdir +chdir("tests/") + +system("python album.py") +system("python playlist.py") +system("python post_processors.py") +system("python song.py") \ No newline at end of file