-
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.
CORS-749, CORS-750
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 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,14 @@ | ||
#!/bin/sh | ||
|
||
# :) is there a better way to set up the path here in prow? | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
NEEDPATH='/usr/local/go/src/github.com/openshift/installer' | ||
mkdir -p $NEEDPATH | ||
cp -R . $NEEDPATH/. | ||
cd $NEEDPATH || exit 1 | ||
CGO_ENABLED=0 go test ./installer/... | ||
else | ||
#in prow, have to figure out how to set workingdir so can just use this instead | ||
#docker run -e IS_CONTAINER='TRUE' -v "$(pwd)":/usr/local/go/src/github.com/openshift/installer -w /usr/local/go/src/github.com/openshift/installer quay.io/coreos/golang-testing ./hack/gotest.sh | ||
docker run -e IS_CONTAINER='TRUE' -v "$(pwd)":"$(pwd)" -w "$(pwd)" 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,17 @@ | ||
#!/bin/sh | ||
|
||
# in prow, already in container, so no 'docker run' | ||
if [ "$IS_CONTAINER" != "" ]; then | ||
export PATH=/tmp:$PATH | ||
INSTALLER_REPO=$(pwd) | ||
cd /tmp || exit 1 | ||
wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip | ||
unzip terraform_0.11.7_linux_amd64.zip | ||
set -x | ||
cd "$INSTALLER_REPO" || exit 1 | ||
/tmp/terraform fmt -list -check -write=false | ||
else | ||
docker run -e IS_CONTAINER='TRUE' \ | ||
--rm -v "$PWD":"$PWD":ro -w "$PWD" -v /tmp:/tmp:rw \ | ||
-w "$PWD" quay.io/coreos/golang-testing ./hack/tf-fmt.sh | ||
fi |