Skip to content

Commit 8cb6a25

Browse files
mbwhitejt-nti
authored andcommitted
[FAB-16136] Do not run tests in chaincode container
Set the gradle and maven rebuilds of the Java code when creating the chaincode container to not do the tests. These would have been run before deployment by the deverlopers. Doing so in Java slows down deployment quite a bit. Change-Id: Id3ffc2dc9a36c11c7cfe7f41e98aaeb234c478ad Signed-off-by: Matthew B. White <[email protected]>
1 parent 3710641 commit 8cb6a25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fabric-chaincode-docker/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ buildGradle() {
1515
echo "Gradle build"
1616
if [ -f ./gradlew ]; then
1717
chmod +x ./gradlew
18-
./gradlew build shadowJar
18+
./gradlew build shadowJar -x test
1919
else
20-
gradle build shadowJar
20+
gradle build shadowJar -x test
2121
fi
2222
retval=$?
2323
if [ $retval -ne 0 ]; then
@@ -38,7 +38,7 @@ buildMaven() {
3838
tar cf - . | (cd ${TMP_DIR}; tar xf -)
3939
cd ${TMP_DIR}
4040
echo "Maven build"
41-
mvn compile package
41+
mvn compile package -DskipTests -Dmaven.test.skip=true
4242
retval=$?
4343
if [ $retval -ne 0 ]; then
4444
exit $retval

0 commit comments

Comments
 (0)