Skip to content

Commit

Permalink
add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellowlol committed Jan 20, 2018
1 parent b9dada0 commit 366cca2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""

import os
from setuptools import setup, find_packages
from setuptools import setup

# Possibly convert the README.md to .rst-format
try:
Expand Down Expand Up @@ -43,6 +43,7 @@
# https://packaging.python.org/en/latest/single_source_version.html
use_scm_version=True,
setup_requires=['setuptools_scm', 'pypandoc'],
#version='0.0.1',

description='Skip intros.',
long_description=README,
Expand All @@ -59,7 +60,7 @@

# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 2 - Alpha',
'Development Status :: 4 - Beta',

# Indicate who your project is intended for
'Intended Audience :: End Users/Desktop',
Expand All @@ -78,7 +79,7 @@

# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=find_packages(),
packages=['bw_plex'],


# List run-time dependencies here. These will be installed by pip when
Expand Down
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytest
import subprocess

def test_that_bwplex_is_installed():
subprocess.check_call(['bwplex', '--help'])
8 changes: 4 additions & 4 deletions travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ language: python
python:
- "2.7"
before_install:
#- sudo apt-get install ffmpeg
- sudo apt-get install ffmpeg
- pip install --upgrade pip
#- pip install codecov
#- pip install pytest pytest-cov
# command to install dependencies
install: "pip install -r requirements.txt"
#script: py.test -vv -s --cov=$TRAVIS_BUILD_DIR/nrk_api --cov-report term-missing
#after_success:
# - codecov
script: py.test -vv -s --cov=$TRAVIS_BUILD_DIR/ --cov-report term-missing
after_success:
- codecov
deploy:
provider: pypi
user: Hellowlol
Expand Down

0 comments on commit 366cca2

Please sign in to comment.