Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Updated build_release_zip.sh to remove build folders for sample apps …
Browse files Browse the repository at this point in the history
…if they exist. Updated build.gradle and travis.yml to allow for better test logging output.
  • Loading branch information
RobertWalsh committed Sep 22, 2014
1 parent 6a6ce91 commit 6894d12
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ env:
script:
- gradle -p source assemble
- gradle -p source shadowJar
- gradle -p source test
- gradle -p source cleanTest test
15 changes: 15 additions & 0 deletions build_release_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,21 @@ do
rm -r "${sample_entry}/bin"
rmdir "${sample_entry}/bin"
fi

# does the sample app directory have a 'build' subdirectory?
if [ -d "${sample_entry}/build" ]; then
# delete it
rm -r "${sample_entry}/build"
rmdir "${sample_entry}/build"
fi

# does the sample app directory have a 'app/build' subdirectory?
if [ -d "${sample_entry}/app/build" ]; then
# delete it
rm -r "${sample_entry}/app/build"
rmdir "${sample_entry}/app/build"
fi

fi
done

Expand Down
13 changes: 13 additions & 0 deletions source/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ buildscript {
}
}

test {
afterTest { desc, result ->
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
testLogging {
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
}
}
}
}

tasks.withType(Test) {
include '**/*Test*'
}
Expand Down

0 comments on commit 6894d12

Please sign in to comment.