Skip to content

Commit

Permalink
Removed deploy tests (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisvg committed Oct 31, 2017
1 parent ca627b3 commit 524a8a4
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions .kokoro/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,75 +71,3 @@ mvn -B --fail-at-end clean verify -Dfile.encoding="UTF-16" \
-Dbigtable.instanceID=instance | \
grep -E -v "(^\[INFO\] Download|^\[INFO\].*skipping)"

echo "******** Deploy to prod *******"
cd appengine-java8

for app in "bigtable" "cloudsql" "datastore" "spanner" \
"urlfetch"
do
(cd "${app}"
sed --in-place='.xx' "s/<\/runtime>/<\/runtime><service>${app}<\/service>/" \
src/main/webapp/WEB-INF/appengine-web.xml
mvn -B --fail-at-end -q appengine:deploy -Dapp.deploy.version="1" \
-Dapp.stage.quickstart=true -Dapp.deploy.force=true -Dapp.deploy.promote=true \
-Dapp.deploy.project="${GOOGLE_CLOUD_PROJECT}" -DskipTests=true
mv src/main/webapp/WEB-INF/appengine-web.xml.xx src/main/webapp/WEB-INF/appengine-web.xml)
done

echo "******* Test prod Deployed Apps ********"
export URL="dot-${GOOGLE_CLOUD_PROJECT}.appspot.com"

# TestIt "helloworld" "" "Hello App Engine -- Java 8!"


## Run tests using App Engine local devserver.
# test_localhost() {
# git clone https://github.com/GoogleCloudPlatform/java-repo-tools.git
#
# devserver_tests=(
# appengine/helloworld
# appengine/datastore/indexes
# appengine/datastore/indexes-exploding
# appengine/datastore/indexes-perfect
# )
# for testdir in "${devserver_tests[@]}" ; do
# if [ -z "$common_dir" ] || [[ $testdir = $common_dir* ]]; then
# ./java-repo-tools/scripts/test-localhost.sh appengine "${testdir}"
# fi
# done

# newplugin_std_tests=(
# appengine/helloworld-new-plugins
# )
# for testdir in "${newplugin_std_tests[@]}" ; do
# ./java-repo-tools/scripts/test-localhost.sh standard_mvn "${testdir}"
# ./java-repo-tools/scripts/test-localhost.sh standard_gradle "${testdir}"
# done
}
test_localhost



# (
# # Stop echoing commands, so we don't leak secret env vars
# # -Pselenium | \ # LV3 20170616 turn off selenium for now.
# set +x
# mvn --batch-mode clean verify \
# -Dbookshelf.clientID="${OAUTH2_CLIENT_ID}" \
# -Dbookshelf.clientSecret="${OAUTH2_CLIENT_SECRET}" \
# -Dbookshelf.bucket="${GCS_BUCKET envvar is unset}" \
# | \
# grep -E -v "(^\[INFO\] Download|^\[INFO\].*skipping)"
# )
#
# Test running samples on localhost.
# git clone https://github.com/GoogleCloudPlatform/java-repo-tools.git
# ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-jsp -- -DskipTests=true
# ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-servlet -- -DskipTests=true
# ./java-repo-tools/scripts/test-localhost.sh jetty helloworld-compat -- -DskipTests=true
# ./java-repo-tools/scripts/test-localhost.sh spring-boot helloworld-springboot -- -DskipTests=true

# Check that all shell scripts in this repo (including this one) pass the
# Shell Check linter.
cd ..
shellcheck ./**/*.sh

0 comments on commit 524a8a4

Please sign in to comment.