Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@

timeout: 14400s
steps:
- id: prune unchanged directories
name: gcr.io/cloud-builders/git
entrypoint: bash
args:
- -c
- |
git fetch --unshallow
git diff origin/${_BASE_BRANCH} --name-only > _changed_files
sed 's/\/.*/\//' _changed_files > _changed_folders
for d in */; do
if ! grep -q "^$d" _changed_folders && [[ "$d" != "test/" ]]; then
rm -rf $d;
fi
done
- id: prepare
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment']
Expand Down Expand Up @@ -71,3 +57,5 @@ tags:
substitutions:
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1'
options:
machineType: E2_HIGHCPU_32
7 changes: 7 additions & 0 deletions test/integration/sample_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func TestSamples(t *testing.T) {
tft.WithSetupPath(setupPath),
tft.WithRetryableTerraformErrors(retryErrors, 10, time.Minute),
)

sampleTest.DefineInit(func(a *assert.Assertions) {
sampleTest.DefaultInit(a)

// run tests in parallel upto GOMAXPROCS
b.t.Parallel()
})
sampleTest.DefineVerify(func(a *assert.Assertions) {})
sampleTest.Test()
t.Logf("Test %s completed in %s project", sampleName, tg.projectID)
Expand Down