-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrating travis into CML-flogo for running all tests before merge …
…time (#149) * adding travis.yml file * changing depth in travis.yml from 1 to 3 * adding more paths to tests * adding each directory to test * moving tests to a shell script that is then run in travis.yml * adding sh to run bash script * changing sh to bash * in travis.yml changing running script from bash tests.sh to ./tests.sh * modifying permissions for tests.sh * removing duplicate permissions action in travis.yml * adding permissions line back into travis file * changing permissions of tests.sh * removing permissions line in tests.sh * removing pushd/popd for cd and cd .. * testing over cats and ops * should have a better tests.sh script now * modifying tests script again and fixing an error in the tests for img2tensor * improving tests.sh script * improving tests.sh script again * fixing issues with caps or no caps of operation directories * fixing errors in running tests in action, runCML, and toLog * adding to action go.mod such that it refers to the operations of the this local fork of the repo * makeing the packages in image processing refer to the current versions * removing last changes to image_processing go.mod * seeing if tagging operation category fixes the bug stopping travis * renaming subsectiontoimage to subSectionToImage * fixing subSectionToImage due to travis bug * changing image processing.go to camel case for all subSectionToImage * undoing last change * mapping go.mod to local categories * trying to map to local categories for utils/runCML * dealing with tagged categories * removing travis.yml
- Loading branch information
1 parent
c714743
commit 5293762
Showing
21 changed files
with
173 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
module github.com/project-flogo/catalystml-flogo/action | ||
|
||
require ( | ||
github.com/project-flogo/catalystml-flogo/operations/cleaning v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/common v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/image_processing v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/math v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/restructuring v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/string_processing v0.0.0-20191221100507-49a2889fd614 | ||
github.com/project-flogo/catalystml-flogo/operations/cleaning v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/common v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/image_processing v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/math v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/nlp v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/restructuring v0.1.6 | ||
github.com/project-flogo/catalystml-flogo/operations/string_processing v0.1.6 | ||
github.com/project-flogo/core v0.9.4 | ||
github.com/stretchr/testify v1.4.0 | ||
|
||
) | ||
|
||
// replace github.com/project-flogo/catalystml-flogo/operations/cleaning => ../operations/cleaning | ||
// replace github.com/project-flogo/catalystml-flogo/operations/common => ../operations/common | ||
// replace github.com/project-flogo/catalystml-flogo/operations/image_processing => ../operations/image_processing | ||
// replace github.com/project-flogo/catalystml-flogo/operations/math => ../operations/math | ||
// replace github.com/project-flogo/catalystml-flogo/operations/nlp => ../operations/nlp | ||
// replace github.com/project-flogo/catalystml-flogo/operations/restructuring => ../operations/restructuring | ||
// replace github.com/project-flogo/catalystml-flogo/operations/string_processing => ../operations/string_processing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,38 +51,7 @@ func TestTrue(t *testing.T) { | |
|
||
p := Params{RemoveAlpha: true, IncludeBatch: true} | ||
|
||
file := "/Users/[email protected]/working/coffee_carafe_demo/Jabil_Image_Classification/dataset2/Cup/Image6.png" | ||
f, err := os.Open(file) | ||
if err != nil { | ||
fmt.Printf("Error Opening file: %v\n", err) | ||
return | ||
} | ||
|
||
img, _, err := image.Decode(f) | ||
if err != nil { | ||
fmt.Printf("Error Decoding file: %v\n", err) | ||
return | ||
} | ||
|
||
inputs["img"] = img | ||
|
||
optInitConext := test.NewOperationInitContext(p, nil) | ||
opt, err := New(optInitConext) | ||
assert.Nil(t, err) | ||
|
||
output, err := opt.Eval(inputs) | ||
assert.NotNil(t, output) | ||
assert.Nil(t, err) | ||
|
||
} | ||
|
||
func TestDefaults(t *testing.T) { | ||
|
||
inputs := make(map[string]interface{}) | ||
|
||
p := Params{} | ||
|
||
file := "/Users/[email protected]/working/coffee_carafe_demo/Jabil_Image_Classification/dataset2/Cup/Image6.png" | ||
file := "../test_image.jpg" | ||
f, err := os.Open(file) | ||
if err != nil { | ||
fmt.Printf("Error Opening file: %v\n", err) | ||
|
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.