Skip to content

Commit 07625f1

Browse files
authored
Merge pull request #9 from dewan-ahmed/master
Adding skeleton test scripts for openshift/release PR
2 parents eb99c88 + 7fe0658 commit 07625f1

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
# fail if some commands fails
4+
set -e
5+
6+
# Do not show token in CI log
7+
set +x
8+
9+
# show commands
10+
set -x
11+
export CI="prow"
12+
go mod vendor
13+
14+
export PATH="$PATH:$(pwd)"
15+
export ARTIFACTS_DIR="/tmp/artifacts"
16+
17+
# Reference e2e test(s)
18+
echo "Please reference the E2E test script(s) here"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/sh
2+
3+
# fail if some commands fails
4+
set -e
5+
# show commands
6+
set -x
7+
8+
export ARTIFACTS_DIR="/tmp/artifacts"
9+
export CUSTOM_HOMEDIR=$ARTIFACTS_DIR
10+
export PATH=$PATH:$GOPATH/bin
11+
12+
go env
13+
go mod vendor
14+
if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then
15+
echo "not well formatted sources are found"
16+
exit 1
17+
fi
18+
go mod tidy
19+
if [[ ! -z $(git status -s) ]]
20+
then
21+
echo "Go mod state is not clean."
22+
exit 1
23+
fi
24+
25+
# Unit tests to be referenced here
26+
echo "Please reference the unit test script(s) here"

0 commit comments

Comments
 (0)