Skip to content

Commit

Permalink
Resolves #99, refers to #98
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cancilla committed Mar 27, 2017
1 parent 2405717 commit e4f1fcd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ingest/common/com.ibm.streamsx.health.ingest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ task deleteDeps(type: Delete) {
delete 'com.ibm.streamsx.health.ingest.types.resolver'
}

build.dependsOn buildToolkit
build.finalizedBy buildToolkit
clean.dependsOn deleteDeps, cleanToolkit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repositories {
dependencies {
compile fileTree(dir: System.getenv("STREAMS_INSTALL") + '/lib', include: ['*.jar'])
compile files(System.getenv("STREAMS_INSTALL") + '/toolkits/com.ibm.streamsx.topology/lib/com.ibm.streamsx.topology.jar')
compile project(':ingest:common:com.ibm.streamsx.health.ingest')
testCompile 'junit:junit:4.12'
}

Expand All @@ -35,7 +36,7 @@ task buildToolkit {
}
}

task buildServices {
task buildServices(dependsOn: ':ingest:common:com.ibm.streamsx.health.ingest:buildToolkit') {
doLast {
def serviceToolkitPath = "${project(':ingest:common:com.ibm.streamsx.health.ingest').projectDir}" + ':' + ':' + jsonToolkitPath + ':' + topologyToolkitPath + ':' + ':' + dateTimeToolkitPath
compileApp('com.ibm.streamsx.health.ingest.physionet.service', 'PhysionetIngestService', serviceToolkitPath)
Expand Down
33 changes: 33 additions & 0 deletions test/test-builds.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import glob
from subprocess import call

test_failures = {}
test_successes = {}

files = [file for file in glob.glob('../**/build.gradle', recursive=True)]
for f in files:
if f.startswith('../test'):
continue

# clean all projects in the platform before executing build
print("Cleaning all projects first...")
call(['../gradlew', '-p', '../', 'clean'])

print("Executing " + f + "...")
rc = call(['../gradlew', '-b', f, 'build', 'clean'])
if rc == 0:
test_successes[f] = rc
else:
test_failures[f] = rc

print("Return code: " + str(rc))

print("FAILURES:")
for key in test_failures:
print(key + ": " + "FAILED(rc=" + str(test_failures[key]) + ")!")

print("\n\n")
print("SUCCESSES:")
for key in test_successes:
print(key + ": PASS")

0 comments on commit e4f1fcd

Please sign in to comment.