1
0
mirror of https://github.com/golang/go synced 2024-09-30 18:18:32 -06:00
go/gopls/integration/govim/cloudbuild.harness.yaml
Rob Findley 4abfd4a162 gopls/integration/govim: switch to latest, and improve artifacts
Now that there is a tagged version of govim containing the `-gopls` test
flag, we can just use latest to pick up a relatively stable govim, and
not have to maintain the govim version.

Doing this required changing the way we fetch govim into our test
harness: there is now the assumption that /src/govim is a git
repository, so we clone using git.

Along the way, clean up some unnecessary artifacts and add a script for
downloading artifacts from GCS.

Change-Id: I6ef4dd468d6b9baf66d3adae3f1fb80c12ac9578
Reviewed-on: https://go-review.googlesource.com/c/tools/+/217730
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-02-05 14:18:39 +00:00

22 lines
937 B
YAML

# Copyright 2019 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Build the govim test harness that will be used to run govim integration tests
# for gopls. See README.md for instructions on how to use this.
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build',
# To allow for breaking changes to this test harness, tag with a major
# version number.
'-t', 'gcr.io/$PROJECT_ID/govim-harness:latest',
'-t', 'gcr.io/$PROJECT_ID/govim-harness:3',
# It is assumed that this build is running from the root directory of the
# tools repository.
'-f', 'gopls/integration/govim/Dockerfile',
# Use the integration test directory as build context: the test harness
# doesn't actually require any local files.
'gopls/integration/govim']
images:
- gcr.io/$PROJECT_ID/govim-harness