Skip to content

Commit c10a53f

Browse files
committed
cmd/govulncheck: adds kokoro configuration for integration testing
Change-Id: Idcdf830309915a26aa6365c7b5de2fb15307eb16 Reviewed-on: https://go-review.googlesource.com/c/vuln/+/400474 Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 30d6504 commit c10a53f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vuln/cmd/govulncheck/integration/kokoro/gcp_ubuntu/integration.sh"
4+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# Copyright 2022 The Go Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style
4+
# license that can be found in the LICENSE file.
5+
6+
# Run integration_test.sh on kokoro.
7+
8+
# Fail on any error.
9+
set -e
10+
11+
# Code under repo is checked out to ${KOKORO_ARTIFACTS_DIR}/git.
12+
# The main directory name in this path is determined by the scm name specified
13+
# in the job configuration, which in this case is "vuln".
14+
cd "${KOKORO_ARTIFACTS_DIR}/git/vuln/cmd/govulncheck/integration"
15+
16+
# Run integration_test.sh
17+
./integration_test.sh
18+

0 commit comments

Comments
 (0)