1*55e87721SMatt Gilbride# 2*55e87721SMatt Gilbride# Copyright 2022 Google LLC 3*55e87721SMatt Gilbride# 4*55e87721SMatt Gilbride# Licensed under the Apache License, Version 2.0 (the "License"); 5*55e87721SMatt Gilbride# you may not use this file except in compliance with the License. 6*55e87721SMatt Gilbride# You may obtain a copy of the License at 7*55e87721SMatt Gilbride# 8*55e87721SMatt Gilbride# https://www.apache.org/licenses/LICENSE-2.0 9*55e87721SMatt Gilbride# 10*55e87721SMatt Gilbride# Unless required by applicable law or agreed to in writing, software 11*55e87721SMatt Gilbride# distributed under the License is distributed on an "AS IS" BASIS, 12*55e87721SMatt Gilbride# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*55e87721SMatt Gilbride# See the License for the specific language governing permissions and 14*55e87721SMatt Gilbride# limitations under the License. 15*55e87721SMatt Gilbride# 16*55e87721SMatt Gilbrideset -eo pipefail 17*55e87721SMatt GilbridescriptDir="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" 18*55e87721SMatt Gilbride 19*55e87721SMatt Gilbride# Prepare the environment 20*55e87721SMatt Gilbridepushd "$scriptDir" >/dev/null 21*55e87721SMatt Gilbridesource ./helpers/gcloud-sync-env.sh 22*55e87721SMatt Gilbridesource ./helpers/populate-env.sh 23*55e87721SMatt Gilbridepopd >/dev/null 24*55e87721SMatt Gilbride 25*55e87721SMatt Gilbride# Perform integration testing using Kokoro's mvn syntax. 26*55e87721SMatt Gilbridepushd "$scriptDir/.." >/dev/null 27*55e87721SMatt Gilbridesource ./.kokoro/common.sh 28*55e87721SMatt Gilbrideif [ -n "$1" ]; then 29*55e87721SMatt Gilbride # If given a specific module list, only perform integration tests on those. 30*55e87721SMatt Gilbride run_integration_tests "$1" 31*55e87721SMatt Gilbrideelse 32*55e87721SMatt Gilbride # If not given an argument list, integration test the parent project. 33*55e87721SMatt Gilbride run_integration_tests -:google-cloud-os-login,-:google-cloud-recommender,-:google-cloud-talent 34*55e87721SMatt Gilbridefi 35*55e87721SMatt Gilbridepopd >/dev/null 36