Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 25-May-2021 | - | ||||
Dockerfile | H A D | 25-May-2021 | 653 | 17 | 13 | |
README.md | H A D | 25-May-2021 | 1.5 KiB | 48 | 35 | |
artifacts.go | H A D | 25-May-2021 | 1.8 KiB | 68 | 56 | |
cloudbuild.harness.yaml | H A D | 25-May-2021 | 937 | 22 | 20 | |
cloudbuild.yaml | H A D | 25-May-2021 | 1.8 KiB | 52 | 43 | |
run_local.sh | H A D | 25-May-2021 | 2.5 KiB | 97 | 74 | |
run_tests_for_cloudbuild.sh | H A D | 25-May-2021 | 1.2 KiB | 29 | 7 |
README.md
1# govim integration tests 2 3Files in this directory configure Cloud Build to run [govim] integration tests 4against a gopls binary built from source. 5 6## Running on GCP 7 8To run these integration tests in Cloud Build, use the following steps. Here 9we assume that `$PROJECT_ID` is a valid GCP project and `$BUCKET` is a cloud 10storage bucket owned by that project. 11 12- `cd` to the root directory of the tools project. 13- (at least once per GCP project) Build the test harness: 14``` 15$ gcloud builds submit \ 16 --project="${PROJECT_ID}" \ 17 --config=gopls/integration/govim/cloudbuild.harness.yaml 18``` 19- Run the integration tests: 20``` 21$ gcloud builds submit \ 22 --project="${PROJECT_ID}" \ 23 --config=gopls/integration/govim/cloudbuild.yaml \ 24 --substitutions=_RESULT_BUCKET="${BUCKET}" 25``` 26 27## Fetching Artifacts 28 29Assuming the artifacts bucket is world readable, you can fetch integration from 30GCS. They are located at: 31 32- logs: `https://storage.googleapis.com/${BUCKET}/log-${EVALUATION_ID}.txt` 33- artifact tarball: `https://storage.googleapis.com/${BUCKET}/govim/${EVALUATION_ID}/artifacts.tar.gz` 34 35The `artifacts.go` command can be used to fetch both artifacts using an 36evaluation id. 37 38## Running locally 39 40Run `gopls/integration/govim/run_local.sh`. This may take a while the first 41time it is run, as it will require building the test harness. This script 42accepts two flags to modify its behavior: 43 44**--sudo**: run docker with `sudo` 45**--short**: run `go test -short` 46 47[govim]: https://github.com/govim/govim 48