blob: 797b4a4e484781c888c3b0770c539096696d746c [file] [log] [blame]
# Copyright 2020 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.
# Run postgres in a docker container to host the test database.
- name: ''
args: ['run', '--rm', '-d', '--name', 'pg',
# All Cloud Build containers are part of the cloudbuild docker
# network. This allows the container in the next step to refer
# to this container by its name.
'--network', 'cloudbuild',
# Create the test database with the same collation as prod (which has
# the settings LC_COLLATE=C and LC_CTYPE=C).
'-e', 'LANG=C',
# Run the all.bash script in CI mode, using the standard golang docker
# container. That container is built on a standard Debian image, so it
# has bash and other common binaries in addition to the go toolchain.
- name: 'golang:1.13'
- GO111MODULE=on
# Refer to the container started in the above step.
args: ['./all.bash', 'ci']