Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for travis CI #1

Merged
merged 1 commit into from
Mar 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ addons:
postgresql: "9.3"
before_install:
- sudo apt-get update
# remove zope.interface installed from aptitude
- sudo apt-get purge python-zope.interface
# Install the 'plpython' extension language

# Installation for cnx-archive:
# * Install the 'plpython' extension language
Expand Down Expand Up @@ -35,8 +38,6 @@ before_install:

# Install the coverage utility and coveralls reporting utility
- sudo apt-get install python-pip
# Install test requirements
- sudo /usr/bin/pip install mock webtest
# Scripts get installed to /usr/local/bin
- sudo /usr/bin/pip install coverage
- sudo /usr/bin/pip install coveralls
Expand All @@ -50,8 +51,8 @@ before_script:
env:
- TESTING_CONFIG="testing.ini"
script:
# This is the same as `python -m unittest discover` with a coverage wrapper.
- /usr/local/bin/coverage run --source=cnxpublishing -m unittest discover
# This is the same as `python setup.py test` with a coverage wrapper.
- sudo /usr/local/bin/coverage run --source=cnxpublishing setup.py test
after_success:
# Report test coverage to coveralls.io
- /usr/local/bin/coveralls
Expand Down
2 changes: 1 addition & 1 deletion cnxpublishing/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ def main(global_config, **settings):
config = Configurator(settings=settings)
declare_routes(config)

config.scan()
config.scan(ignore='cnxpublishing.tests')
return config.make_wsgi_app()
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description = """\
Application for accepting publication requests to the Connexions Archive."""

if IS_PY3:
if not IS_PY3:
tests_require.append('mock')

setup(
Expand All @@ -34,6 +34,7 @@
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
test_suite='cnxpublishing.tests',
packages=find_packages(),
include_package_data=True,
entry_points="""\
Expand Down