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

Enable Travis CI, fix tests and add auto-deploy to PyPi on Travis #7

Merged
merged 4 commits into from
Aug 29, 2018
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
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:
- 3.6
install: pip install -r requirements.txt
script: python tests/test_polarTransform.py
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: addisonElliott
on:
tags: true
password:
secure: F0Xx96xWhRdtfD3kSywX4VqF2VbZst85Wy0AsI8774OeN3e2712lgQyRp1sBp4AZzsYWowKg4/kFNljvJtko56Ag+ulwLieP9K+idWj4kc62BKCBMfsTEhHWicAla3mnlfIQGMIvD9En7CUPAiu5Bs+wj8kto2LRwv2lztSKBN8fk56r9zTd7f6Ft8MOoZqXZ8cpQNv610BvsY61s/u2RnaDkcI75LyztPCGIQ3O1wYnZWNebslif9QMsygHvsSFxoomOhM/MjRvsvEwpzDapKdaQ7xYf9uBfw40/XG/9xL0JqAjXpbKNltxFaPkshVgDBt+xMStyYV2nd5LClPrYYpSBHeFtL+HsO/lnUksBs09GwLQFw0TYfed0E28seMeb6zTSlnFQF2VnxVWu1Vqe1uriMmSH/0iKaes6ucQZ6Oag22ub3mtABz855kQ5FtkVW2eK8MG8FoFoxi6x+9e+YN0BG9A2NsNlNvur+nzx5XTduGVs+REAHURZ/56WG8IsKqOpRrNHPL5cK3+FBwCnAZVwkR5cT9K4pKtJBiL4h0aJzPTi3F4MCSns2vMbLSMQMBHVBey+lmReOZ9GH7uzS3KOZa+5LJLEFkvQjb3N3X7znn0oJO7s/aSsW2bzjrRhsYPYoLvSkcPqmyswowesB/SrKzX3vzvgBT9DFsCAHI=
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
numpy
scipy
scikit-image
numpydoc
numpydoc
imageio
18 changes: 6 additions & 12 deletions tests/test_polarTransform.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import os
import sys
import unittest

import numpy as np
import polarTransform
import sys
import os

sys.path.append(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from util import loadImage, assert_image_equal

import polarTransform


class TestPolarConversion(unittest.TestCase):
def setUp(self):
self.shortAxisApexImage = loadImage('shortAxisApex.png')
self.verticalLinesImage = loadImage('verticalLines.png')
# self.horizontalLinesImage = loadImage('horizontalLines.png')
# self.checkerboardImage = loadImage('checkerboard.png')

self.shortAxisApexPolarImage = loadImage('shortAxisApexPolarImage.png')
self.shortAxisApexPolarImage_centerMiddle = loadImage('shortAxisApexPolarImage_centerMiddle.png')
Expand Down Expand Up @@ -158,8 +158,6 @@ class TestCartesianConversion(unittest.TestCase):
def setUp(self):
self.shortAxisApexImage = loadImage('shortAxisApex.png')
self.verticalLinesImage = loadImage('verticalLines.png')
# self.horizontalLinesImage = loadImage('horizontalLines.png')
# self.checkerboardImage = loadImage('checkerboard.png')

self.shortAxisApexPolarImage = loadImage('shortAxisApexPolarImage.png')
self.shortAxisApexPolarImage_centerMiddle = loadImage('shortAxisApexPolarImage_centerMiddle.png')
Expand Down Expand Up @@ -354,8 +352,6 @@ class TestPolarAndCartesianConversion(unittest.TestCase):
def setUp(self):
self.shortAxisApexImage = loadImage('shortAxisApex.png')
self.verticalLinesImage = loadImage('verticalLines.png')
# self.horizontalLinesImage = loadImage('horizontalLines.png')
# self.checkerboardImage = loadImage('checkerboard.png')

self.shortAxisApexPolarImage = loadImage('shortAxisApexPolarImage.png')
self.shortAxisApexPolarImage_centerMiddle = loadImage('shortAxisApexPolarImage_centerMiddle.png')
Expand Down Expand Up @@ -440,8 +436,6 @@ class TestPointConversion(unittest.TestCase):
def setUp(self):
self.shortAxisApexImage = loadImage('shortAxisApex.png')
self.verticalLinesImage = loadImage('verticalLines.png')
# self.horizontalLinesImage = loadImage('horizontalLines.png')
# self.checkerboardImage = loadImage('checkerboard.png')

self.shortAxisApexPolarImage = loadImage('shortAxisApexPolarImage.png')
self.shortAxisApexPolarImage_centerMiddle = loadImage('shortAxisApexPolarImage_centerMiddle.png')
Expand Down