forked from GoogleCloudPlatform/cloud-build-local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
23 lines (19 loc) · 809 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This build is triggered on push to the release branch in order to ensure that
# code compiles prior to creating a Pull Request to the master branch.
steps:
# Run unit tests in all subdirectories (except those excluded by the grep).
- name: 'gcr.io/cloud-builders/go:debian'
entrypoint: 'bash'
args:
- '-c'
- |
find . -type d -maxdepth 1 | grep -Ev "vendor|.git|gopath|integration_tests" | xargs /builder/bin/go.bash test
# Binary creation.
- name: 'gcr.io/cloud-builders/go:debian'
args: ['build', '-o', 'cloud-build-local', 'github.com/GoogleCloudPlatform/cloud-build-local']
# Copy the integration test files to GCS and
# run integration tests in a VM.
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['-c', './integration_tests/run_tests_on_vm.sh']
timeout: '1200s'