@@ -71,75 +71,3 @@ mvn -B --fail-at-end clean verify -Dfile.encoding="UTF-16" \
71
71
-Dbigtable.instanceID=instance | \
72
72
grep -E -v " (^\[INFO\] Download|^\[INFO\].*skipping)"
73
73
74
- echo " ******** Deploy to prod *******"
75
- cd appengine-java8
76
-
77
- for app in " bigtable" " cloudsql" " datastore" " spanner" \
78
- " urlfetch"
79
- do
80
- (cd " ${app} "
81
- sed --in-place=' .xx' " s/<\/runtime>/<\/runtime><service>${app} <\/service>/" \
82
- src/main/webapp/WEB-INF/appengine-web.xml
83
- mvn -B --fail-at-end -q appengine:deploy -Dapp.deploy.version=" 1" \
84
- -Dapp.stage.quickstart=true -Dapp.deploy.force=true -Dapp.deploy.promote=true \
85
- -Dapp.deploy.project=" ${GOOGLE_CLOUD_PROJECT} " -DskipTests=true
86
- mv src/main/webapp/WEB-INF/appengine-web.xml.xx src/main/webapp/WEB-INF/appengine-web.xml)
87
- done
88
-
89
- echo " ******* Test prod Deployed Apps ********"
90
- export URL=" dot-${GOOGLE_CLOUD_PROJECT} .appspot.com"
91
-
92
- # TestIt "helloworld" "" "Hello App Engine -- Java 8!"
93
-
94
-
95
- # # Run tests using App Engine local devserver.
96
- # test_localhost() {
97
- # git clone https://github.com/GoogleCloudPlatform/java-repo-tools.git
98
- #
99
- # devserver_tests=(
100
- # appengine/helloworld
101
- # appengine/datastore/indexes
102
- # appengine/datastore/indexes-exploding
103
- # appengine/datastore/indexes-perfect
104
- # )
105
- # for testdir in "${devserver_tests[@]}" ; do
106
- # if [ -z "$common_dir" ] || [[ $testdir = $common_dir* ]]; then
107
- # ./java-repo-tools/scripts/test-localhost.sh appengine "${testdir}"
108
- # fi
109
- # done
110
-
111
- # newplugin_std_tests=(
112
- # appengine/helloworld-new-plugins
113
- # )
114
- # for testdir in "${newplugin_std_tests[@]}" ; do
115
- # ./java-repo-tools/scripts/test-localhost.sh standard_mvn "${testdir}"
116
- # ./java-repo-tools/scripts/test-localhost.sh standard_gradle "${testdir}"
117
- # done
118
- }
119
- test_localhost
120
-
121
-
122
-
123
- # (
124
- # # Stop echoing commands, so we don't leak secret env vars
125
- # # -Pselenium | \ # LV3 20170616 turn off selenium for now.
126
- # set +x
127
- # mvn --batch-mode clean verify \
128
- # -Dbookshelf.clientID="${OAUTH2_CLIENT_ID}" \
129
- # -Dbookshelf.clientSecret="${OAUTH2_CLIENT_SECRET}" \
130
- # -Dbookshelf.bucket="${GCS_BUCKET envvar is unset}" \
131
- # | \
132
- # grep -E -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
133
- # )
134
- #
135
- # Test running samples on localhost.
136
- # git clone https://github.com/GoogleCloudPlatform/java-repo-tools.git
137
- # ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-jsp -- -DskipTests=true
138
- # ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-servlet -- -DskipTests=true
139
- # ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-compat -- -DskipTests=true
140
- # ./java-repo-tools/scripts/test-localhost.sh spring-boot helloworld-springboot -- -DskipTests=true
141
-
142
- # Check that all shell scripts in this repo (including this one) pass the
143
- # Shell Check linter.
144
- cd ..
145
- shellcheck ./** /* .sh
0 commit comments