Skip to content

Commit 7dc5314

Browse files
authored
Enable Kokoro testing and remove CircleCI for google-api-core (googleapis#5689)
1 parent 5aabf45 commit 7dc5314

4 files changed

Lines changed: 19 additions & 10 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ jobs:
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: |

.kokoro/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ cd github/google-cloud-python
2121
# Disable buffering, so that the logs stream through.
2222
export 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
2630
python3.6 test_utils/scripts/get_target_packages_kokoro.py > ~/target_packages
2731
cat ~/target_packages
2832

.kokoro/common.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ action {
1111
gfile_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.
1717
env_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
}

.kokoro/trampoline.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@
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}

0 commit comments

Comments
 (0)