Skip to content

Commit

Permalink
Add Travis CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
olaurino committed Apr 18, 2015
1 parent 2d23cd9 commit 9ee92f2
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: python

python:
- "2.7"
# - "3.2"
# - "3.3"
# - "3.4"

install:
- "pip install -r requirements.txt"
- "python setup.py install"

script: "python setup.py test"
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
graft volib/resources
graft volib/templates
3 changes: 2 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[pytest]
addopts = --cov volib --verbose --ignore=setup.py --ignore=other/output/reference/setup.py --doctest-modules --cov-report html --cov-report term
addopts = --cov volib --verbose --ignore=setup.py --doctest-modules --cov-report html --cov-report term
norecursedirs = .git build dist tmp* volib/resources/output/
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pyxb==1.2.3
networkx
furl
jinja2
pytest-cov

4 changes: 2 additions & 2 deletions volib/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ def generate_code(model_urls, pkg_metadata, basedir, overwrite=True, write_deps=
... name = 'reference'
... version = '1.0'
>>> m = MetaData()
>>> basedir = os.path.dirname(os.path.abspath(volib.__file__))
>>> os.chdir(os.path.join(basedir, "..", "other"))
>>> basedir = os.path.dirname(volib.resources.__file__)
>>> os.chdir(basedir)
>>> generate_code(['file:ReferenceDM-1.0.vodml.xml',], m, 'output', write_deps=True)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added volib/resources/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion volib/templates/setup.jj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages=find_packages(),
entry_points="""
[vodml.resolver]
{% for model in models -%}
{{ model[0] }},{{ model[1] }}={{ meta.name|alpha }}.{{ model[0]|alpha }}_{{ model[1]|alpha }}.aux:resolver
{{ model[0] }},{{ model[1] }}={{ meta.name|alpha }}.{{ model[0]|alpha }}_{{ model[1]|alpha }}.__aux__:resolver
{% endfor -%}
""",
)

0 comments on commit 9ee92f2

Please sign in to comment.