mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-31 18:55:28 +00:00
Added tests for coveralls with Travis CI
This commit is contained in:
parent
bd43a29115
commit
04196e36b7
15
.travis.yml
15
.travis.yml
|
@ -5,15 +5,16 @@ python:
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo aptitude -y -q install ffmpeg libavcodec-extra-53 lame libmp3lame0
|
- sudo aptitude -y -q install ffmpeg libavcodec-extra-53 lame libmp3lame0
|
||||||
# These dependencies are necessary for ffmpeg. I currently hate all things
|
# 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.
|
# 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.
|
# I've gone through 25 seperate commits to get it working.
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install irs
|
- pip install irs
|
||||||
|
- pip install coveralls # For coveralls.io
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- python tests/song.py
|
- coverage run --source=irs test/test_all.py
|
||||||
- python tests/album.py
|
|
||||||
- python tests/playlist.py
|
after_success:
|
||||||
- python tests/post_processors.py
|
- coveralls
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='irs',
|
name='irs',
|
||||||
version='6.1.1',
|
version='6.1.2',
|
||||||
description='A music downloader that just gets metadata.',
|
description='A music downloader that just gets metadata.',
|
||||||
url='https://github.com/kepoorhampond/irs',
|
url='https://github.com/kepoorhampond/irs',
|
||||||
author='Kepoor Hampond',
|
author='Kepoor Hampond',
|
||||||
|
|
7
tests/test_all.py
Normal file
7
tests/test_all.py
Normal file
|
@ -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")
|
Loading…
Reference in a new issue