Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from dcolligan/run_tests_version
Browse files Browse the repository at this point in the history
Add version to run_tests
  • Loading branch information
dcolligan authored Oct 18, 2016
2 parents cc36b20 + be6267a commit 831b37f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ga4gh_common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""
Common utilities for GA4GH software
"""
__version__ = "undefined"
try:
from . import _version
__version__ = _version.version
except ImportError:
pass
7 changes: 7 additions & 0 deletions ga4gh_common/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from __future__ import print_function
from __future__ import unicode_literals

import sys

import ga4gh_common
import ga4gh_common.utils as utils


Expand All @@ -29,5 +32,9 @@ def log(self, logStr):


def run_tests_main():
if len(sys.argv) >= 2 and sys.argv[1] == '--version':
utils.log("GA4GH run_tests version {}".format(
ga4gh_common.__version__))
return
travisSimulator = TravisSimulator()
travisSimulator.runTests()

0 comments on commit 831b37f

Please sign in to comment.