Skip to content

Commit

Permalink
adding travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-t committed Aug 31, 2018
1 parent 1ee396e commit 7d3ac16
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: python
python:
- "2.7"
# PyPy versions
- "pypy2.7"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install .
# command to run tests
script:
- python -m unittest discover unittest/ -p "*" -v
20 changes: 10 additions & 10 deletions unittest/test_AnnotationSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
# print("\t"+gd.get_annotation())
# print("\tloading GenomeData... succeeds")

genome = "hg38"
print("Checking " + genome)
annot = AnnotationSet(genome, filter_havana=False, protein_coding=True, known_only=False)
# annot = AnnotationSet(genome,filter_havana=True,protein_coding=True,known_only=True)
print("\tloading AnnotationSet... succeeds")
promoters = annot.get_promoters()
print("\tPromoters " + str(len(promoters)))
gd = GenomeData(organism=genome)
print("\t" + gd.get_annotation())
print("\tloading GenomeData... succeeds")
# genome = "hg38"
# print("Checking " + genome)
# annot = AnnotationSet(genome, filter_havana=False, protein_coding=True, known_only=False)
# # annot = AnnotationSet(genome,filter_havana=True,protein_coding=True,known_only=True)
# print("\tloading AnnotationSet... succeeds")
# promoters = annot.get_promoters()
# print("\tPromoters " + str(len(promoters)))
# gd = GenomeData(organism=genome)
# print("\t" + gd.get_annotation())
# print("\tloading GenomeData... succeeds")

# genome = "mm9"
# print("Checking " + genome)
Expand Down

0 comments on commit 7d3ac16

Please sign in to comment.