File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,13 +27,17 @@ cd github/google-cloud-go/internal/godocfx
2727go install
2828cd -
2929
30- cd $( mktemp -d)
31-
3230export GOOGLE_APPLICATION_CREDENTIALS=$KOKORO_KEYSTORE_DIR /72523_go_integration_service_account
3331# Keep GCLOUD_TESTS_GOLANG_PROJECT_ID in sync with continuous.sh.
3432export GCLOUD_TESTS_GOLANG_PROJECT_ID=dulcet-port-762
35- # Generate the YAML and a docs.metadata file.
36- godocfx -project $GCLOUD_TESTS_GOLANG_PROJECT_ID -new-modules cloud.google.com/go
33+
34+ if [[ -n " $FORCE_GENERATE_ALL " ]]; then
35+ for m in $( find . -name go.mod -execdir go list -m \; | grep -v internal) ; do
36+ godocfx -out obj/api/$m @latest $m
37+ done
38+ else
39+ godocfx -project $GCLOUD_TESTS_GOLANG_PROJECT_ID -new-modules cloud.google.com/go
40+ fi
3741
3842for f in $( find obj/api -name docs.metadata) ; do
3943 d=$( dirname $f )
You can’t perform that action at this time.
0 commit comments