Skip to content

Commit

Permalink
Update .travis.yml and setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Jan 3, 2015
1 parent 1a8eef3 commit 698a5b1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 31 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ python:
- "3.4"

install:
- python setup.py install

before_script:
- "if [[ $TRAVIS_PYTHON_VERSION == '3.3' || $TRAVIS_PYTHON_VERSION = '3.4' ]]; then export VOLT_TEST_DIR=build/lib/volt/test; else export VOLT_TEST_DIR=volt/test; fi"
- pip install coveralls --use-wheel
- pip install .
- pip install -r dev-requirements.txt

script:
- nosetests $VOLT_TEST_DIR
- py.test --cov-report term --cov volt tests/

after_success:
- coveralls
18 changes: 4 additions & 14 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
coverage
mock
nose
docutils
textile
markdown
pygments

#setup.py develop
-e .

# optional dev dependencies
# Sphinx
# tox
pytest==2.6.4
pytest-cov==1.8.1
mock==1.0.1
testfixtures==4.1.1
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
future==0.14.3
Jinja2==2.7.3
Markdown==2.4.1
21 changes: 9 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ def run_tests(self):
sys.exit(errno)


install_requires = [
"future==0.14.3",
"Jinja2==2.7.3",
"Markdown==2.4.1",
]
long_description = open("README.rst").read()
with open('README.rst') as src:
long_description = src.read()

with open('requirements.txt') as src:
install_requires = [line.strip() for line in src]

with open('dev-requirements.txt') as src:
tests_require = [line.strip() for line in src]

# handle dependencies for python2.x (x < 7)
try:
Expand All @@ -59,12 +61,7 @@ def run_tests(self):
"textile": ["textile==2.1.5"],
"syntax highlight": ["pygments==1.5"],
},
tests_require = [
'pytest==2.6.4',
'pytest-cov==1.8.1',
'mock==1.0.1',
'testfixtures==4.1.1',
],
tests_require = tests_require,
cmdclass = {'test': PyTest},
zip_safe = False,
entry_points = """
Expand Down

0 comments on commit 698a5b1

Please sign in to comment.