File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments