-
Notifications
You must be signed in to change notification settings - Fork 494
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
Testing on travis-ci #20
Conversation
.travis.yml
Outdated
@@ -0,0 +1,29 @@ | |||
sudo: required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is copied from graphframes.
@@ -70,7 +70,7 @@ def compareArrays(self, values1, values2): | |||
""" | |||
values1 & values2 are {key => numpy array}. | |||
""" | |||
for k, v1 in values1.iteritems(): | |||
for k, v1 in values1.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For python3 compatibility.
@@ -18,7 +18,7 @@ | |||
from sparkdl.transformers.utils import InceptionV3Constants | |||
from ..tests import SparkDLTestCase | |||
from .image_utils import ImageNetOutputComparisonTestCase | |||
import image_utils | |||
from . import image_utils |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python3
@@ -34,12 +32,11 @@ | |||
|
|||
class NamedImageTransformerImagenetTest(SparkDLTestCase): | |||
|
|||
def test_inceptionV3_prediction(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking this test up allows unused variables to go out of scope and be GCed.
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
===========================================
+ Coverage 50.88% 85.95% +35.06%
===========================================
Files 4 20 +16
Lines 169 1175 +1006
Branches 6 6
===========================================
+ Hits 86 1010 +924
- Misses 83 165 +82
Continue to review full report at Codecov.
|
@sueann Travis up and running! |
.travis.yml
Outdated
@@ -0,0 +1,29 @@ | |||
sudo: required | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to add
jdk:
- oraclejdk8 # openJDK crashes sometimes; tensorframes is compiled w.r.t JDK8
following TensorFrames Travis settings https://github.com/databricks/tensorframes/blob/master/.travis.yml
LGTM! |
bfc5dec
to
42cabee
Compare
Python coverage.
42cabee
to
786ee77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. one very minor comment. feel free to merge!
cls.imageArray = imageArray | ||
cls.kerasPredict = kerasPredict | ||
|
||
def test_buildtfgraphforname(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase
This PR adds a travis config file and does a little refactoring to stay within travis's memory limit and pass tests using python3.