Skip to content

Commit

Permalink
Internal Changes.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 345083252
  • Loading branch information
suyashkumar authored and nickgeorge committed Dec 1, 2020
1 parent c557959 commit fd551d9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bazel/test_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,22 @@ function run_bazel_in_venv {
# Deactivate venv
deactivate
}

function go_modules_tests {
mkdir -p /tmp/go/src/github.com/google/fhir
export GOPATH=/tmp/go
export GO111MODULE=on
cp -r ./ /tmp/go/src/github.com/google/fhir
pushd /tmp/go/src/github.com/google/fhir/go
go1.15.5 mod download # Download module dependnecies
go1.15.5 build ./... # Build everything in go/
go1.15.5 test ./... # Test everything in go/
popd
}

# This runs all builds and tests (e.g. all of Bazel tests, Go module tests,
# etc).
function run_all_tests {
run_bazel_in_venv
go_modules_tests
}

0 comments on commit fd551d9

Please sign in to comment.