forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check in tpg into tfv repository (GoogleCloudPlatform#5641)
- Loading branch information
1 parent
b54cf9e
commit 3f101e0
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,16 +106,23 @@ if [ "$REPO" == "terraform-validator" ] || [ "$REPO" == "tf-conversion" ]; then | |
# require a `google` folder to exist. | ||
mkdir -p $LOCAL_PATH/google | ||
fi | ||
|
||
pushd $LOCAL_PATH | ||
# clear out the templates as they are copied during | ||
# generation from mmv1/third_party/validator/tests/data | ||
rm -rf ./testdata/templates/ | ||
rm -rf ./testdata/generatedconvert/ | ||
git add ./testdata | ||
rm -rf ./converters/google/provider | ||
find ./test/** -type f -exec git rm {} \; | ||
|
||
popd | ||
bundle exec compiler -a -e terraform -f validator -o $LOCAL_PATH -v $VERSION | ||
pushd $LOCAL_PATH | ||
|
||
git clone --depth=1 --branch=$BRANCH https://modular-magician:$GITHUB_TOKEN@github.com/$SCRATCH_OWNER/terraform-provider-google converters/google/provider | ||
rm -rf ./converters/google/provider/.git | ||
go mod edit -replace github.com/hashicorp/terraform-provider-google/[email protected]=./converters/google/provider | ||
|
||
make build | ||
export TFV_CREATE_GENERATED_FILES=true | ||
go test ./test -run "TestAcc.*_generated_offline" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters