-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Lemming CI | ||
|
||
## Presubmit | ||
|
||
Any PR triggers the presubmit job. The presubmit creates GCE VM, sets up KNE instance, and runs tests in integration_tests folder. | ||
|
||
See [remote-builder](https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/remote-builder) for details on the remote builder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
export PATH=${PATH}:/usr/local/go/bin | ||
gopath=$(go env GOPATH) | ||
export PATH=${PATH}:$gopath/bin | ||
|
||
cd /tmp/workspace | ||
kne deploy ~/kne-internal/deploy/kne/kind-bridge.yaml | ||
make deploy itest | ||
make clean | ||
make deploy2 itest2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
steps: | ||
- id: remote_builder_test | ||
name: gcr.io/$PROJECT_ID/remote-builder | ||
env: | ||
- USERNAME=user | ||
- SSH_ARGS=--internal-ip --ssh-key-expire-after=1d | ||
- INSTANCE_NAME=kne-presubmit-$BUILD_ID | ||
- INSTANCE_ARGS=--network cloudbuild-workers --image-project gep-kne --image-family kne --machine-type n2-standard-16 --preemptible | ||
- ZONE=us-central1-a | ||
- REMOTE_WORKSPACE=/tmp/workspace | ||
- COMMAND=source /tmp/workspace/cloudbuild/presubmit.sh 2>&1 | ||
|
||
timeout: 1800s | ||
|
||
options: | ||
pool: | ||
name: 'projects/openconfig-lemming/locations/us-central1/workerPools/lemming-workerpool' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters