File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 command : |
4141 python3.6 test_utils/scripts/get_target_packages.py > ~/target_packages
4242 cat ~/target_packages
43- - run :
44- name : Run tests - google.api_core
45- command : |
46- if [[ -n $(grep -x api_core ~/target_packages) ]]; then
47- nox -f api_core/nox.py
48- fi
4943 - run :
5044 name : Run tests - google.cloud.core
5145 command : |
Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ cd github/google-cloud-python
2121# Disable buffering, so that the logs stream through.
2222export PYTHONUNBUFFERED=1
2323
24+ # Debug: show build environment
25+ env | grep KOKORO
26+
2427# Find out if this package was modified.
25- python3.6 -m pip install git+https://github.com/tswast/ci-diff-helper.git
28+ # Temporarily use Thea's fork of ci-diff-helper w/ Kokoro support.
29+ python3.6 -m pip install --quiet git+https://github.com/theacodes/ci-diff-helper.git
2630python3.6 test_utils/scripts/get_target_packages_kokoro.py > ~ /target_packages
2731cat ~ /target_packages
2832
Original file line number Diff line number Diff line change @@ -11,10 +11,14 @@ action {
1111gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
1212
1313# Use the trampoline script to run in docker.
14- build_file: " synthtool /.kokoro/trampoline.sh"
14+ build_file: " google-cloud-python /.kokoro/trampoline.sh"
1515
1616# Configure the docker image for kokoro-trampoline.
1717env_vars: {
1818 key: " TRAMPOLINE_IMAGE"
19- value: " gcr.io/cloud-devrel-kokoro-resources/python"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/python-multi"
20+ }
21+ env_vars: {
22+ key: " TRAMPOLINE_BUILD_FILE"
23+ value: " github/google-cloud-python/.kokoro/build.sh"
2024}
Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16- python3 " ${KOKORO_GFILE_DIR} /trampoline_v1.py"
16+ set -eo pipefail
17+
18+ python3 " ${KOKORO_GFILE_DIR} /trampoline_v1.py" || ret_code=$?
19+
20+ chmod +x ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh
21+ ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh || true
22+
23+ exit ${ret_code}
You can’t perform that action at this time.
0 commit comments