-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Cancilla
committed
Mar 27, 2017
1 parent
2405717
commit e4f1fcd
Showing
3 changed files
with
36 additions
and
2 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
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 |
---|---|---|
@@ -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") | ||
|