-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from sallyom/remove-bazel-from-tests
Remove bazel from test process, use 'terraform fmt' 'go test'
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
if [ "$IS_CONTAINER" != "" ]; then | ||
cd .. | ||
SOURCE_DIR="$(pwd)" | ||
cd .. || exit | ||
ROOT_DIR="$(pwd)" | ||
# if running in a local prow instance, with repo ../not-openshift/installer, have to modify here | ||
TARGET_DIR="${ROOT_DIR}/openshift" | ||
if [ "$SOURCE_DIR" != "$TARGET_DIR" ]; then | ||
mv "$SOURCE_DIR" "$TARGET_DIR" | ||
fi; | ||
cd "${TARGET_DIR}/installer/" || exit | ||
CGO_ENABLED=0 go test ./installer/... | ||
else | ||
docker run -e IS_CONTAINER='TRUE' -v "$PWD":/go/src/github.com/openshift/installer -w /go/src/github.com/openshift/installer quay.io/coreos/golang-testing ./hack/gotest.sh | ||
fi | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# in prow, already in container, so no 'docker run' | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
set -x | ||
/terraform fmt -list -check -write=false | ||
else | ||
docker run -e IS_CONTAINER='TRUE' --rm -v "$PWD":"$PWD":ro -v /tmp:/tmp:rw -w "$PWD" quay.io/coreos/terraform-alpine:v0.11.7 ./hack/tf-fmt.sh | ||
fi |