File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ shopt -s globstar
19
19
trap ' ' HUP
20
20
21
21
# Update gcloud and check version
22
- gcloud components update --quiet --verbosity= " error "
22
+ gcloud components update --quiet 1> /dev/null
23
23
echo -e " \n ********** GCLOUD INFO *********** \n"
24
24
gcloud -v
25
25
echo -e " \n ********** MAVEN INFO *********** \n"
@@ -42,14 +42,15 @@ echo -e "\n******************** TESTING AFFECTED PROJECTS ********************"
42
42
cd github/java-docs-samples
43
43
find * -name pom.xml -print0 | sort -z | while read -d $' \0' file
44
44
do
45
-
46
45
# Navigate to project
46
+ file=$( dirname " $file " )
47
47
pushd " $file " > /dev/null
48
+
48
49
set +e
49
- # Has the project changed?
50
+ # Only tests changed projects
50
51
git diff --quiet master.. .
51
52
CHANGED=$?
52
- # Skip parents so the projects aren't tested twice
53
+ # Only test leafs to prevent testing twice
53
54
PARENT=$( grep " <modules>" pom.xml -c)
54
55
set -e
55
56
66
67
-Dmaven.test.redirectTestOutputToFile=true \
67
68
-Dbigtable.projectID=" ${GOOGLE_CLOUD_PROJECT} " \
68
69
-Dbigtable.instanceID=instance
69
- echo -e " Tests complete. \n"
70
+ echo -e " \n Tests complete. \n"
70
71
fi
71
72
72
73
popd > /dev/null
You can’t perform that action at this time.
0 commit comments