File tree Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Expand file tree Collapse file tree 5 files changed +42
-22
lines changed Original file line number Diff line number Diff line change 7
7
- GO111MODULE=off
8
8
9
9
go :
10
- - " 1.11.4 "
10
+ - " 1.12.1 "
11
11
12
- before_install :
13
- - go get github.com/mattn/goveralls
14
- - go get github.com/rexray/gocsi/csc
15
- - go get github.com/golang/dep/cmd/dep
16
-
17
- script :
18
- - hack/verify-all.sh
19
- - go test -covermode=count -coverprofile=profile.cov ./pkg/...
20
- - make blobfuse
21
- - make sanity-test
22
- - make integration-test
23
- - make blobfuse-windows
12
+ jobs :
13
+ include :
14
+ - stage : test
15
+ name : " build test"
16
+ install :
17
+ - GO111MODULE=off go get github.com/mattn/goveralls
18
+ - go get github.com/golang/dep/cmd/dep
19
+ script :
20
+ - hack/verify-all.sh
21
+ - make blobfuse
22
+ - make blobfuse-windows
23
+ - go test -covermode=count -coverprofile=profile.cov ./pkg/...
24
+ - stage : test
25
+ name : " sanity Test"
26
+ script : make sanity-test
27
+ after_failure : TRAVIS_TEST_RESULT=0
28
+ - stage : test
29
+ name : " integration Test"
30
+ install :
31
+ - GO111MODULE=off go get github.com/rexray/gocsi/csc
32
+ script :
33
+ - make blobfuse
34
+ - make integration-test
Original file line number Diff line number Diff line change 30
30
go test -covermode=count -coverprofile=profile.cov ./pkg/...
31
31
$GOPATH /bin/goveralls -coverprofile=profile.cov -service=travis-ci
32
32
integration-test :
33
- sudo test/integration/run-tests-all-clouds.sh
33
+ test/integration/run-tests-all-clouds.sh
34
34
sanity-test :
35
35
test/sanity/run-tests-all-clouds.sh
36
36
blobfuse :
Original file line number Diff line number Diff line change 17
17
18
18
set -euo pipefail
19
19
20
- csc=$GOPATH /bin/csc
20
+ csc=" csc"
21
+ if [ -v GOPATH ]; then
22
+ csc=$GOPATH /bin/csc
23
+ fi
24
+
21
25
volname=` date +%s`
22
26
volname=" citest-$volname "
23
27
volSize=" 2147483648"
@@ -68,15 +72,15 @@ if [ -v aadClientSecret ]; then
68
72
if [ " $cloud " != " AzureChinaCloud" ]; then
69
73
# blobfuse mount/unmount on travis VM does not work against AzureChinaCloud
70
74
echo " mount volume test:"
71
- $csc node publish --endpoint $endpoint --cap 1,block --target-path $target_path $volumeid
75
+ sudo $csc node publish --endpoint $endpoint --cap 1,block --target-path $target_path $volumeid
72
76
retcode=$?
73
77
if [ $retcode -gt 0 ]; then
74
78
exit $retcode
75
79
fi
76
80
sleep 2
77
81
78
82
echo " unmount volume test:"
79
- $csc node unpublish --endpoint $endpoint --target-path $target_path $volumeid
83
+ sudo $csc node unpublish --endpoint $endpoint --target-path $target_path $volumeid
80
84
retcode=$?
81
85
if [ $retcode -gt 0 ]; then
82
86
exit $retcode
Original file line number Diff line number Diff line change 16
16
17
17
set -euo pipefail
18
18
19
- export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
19
+ if [ ! -v AZURE_CREDENTIAL_FILE ]; then
20
+ export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
21
+ fi
20
22
21
23
# run test on AzurePublicCloud
22
- cp test/integration/azure.json $AZURE_CREDENTIAL_FILE
23
24
if [ -v aadClientSecret ]; then
25
+ cp test/integration/azure.json $AZURE_CREDENTIAL_FILE
26
+
27
+ # copy blobfuse binary
28
+ sudo mkdir /usr/blob
29
+ sudo cp test/sanity/blobfuse /usr/blob/blobfuse
30
+
24
31
sed -i " s/tenantId-input/$tenantId /g" $AZURE_CREDENTIAL_FILE
25
32
sed -i " s/subscriptionId-input/$subscriptionId /g" $AZURE_CREDENTIAL_FILE
26
33
sed -i " s/aadClientId-input/$aadClientId /g" $AZURE_CREDENTIAL_FILE
Original file line number Diff line number Diff line change 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # set -euo pipefail
17
+ set -euo pipefail
18
18
19
19
if [ ! -v AZURE_CREDENTIAL_FILE ]; then
20
20
export set AZURE_CREDENTIAL_FILE=/tmp/azure.json
@@ -38,8 +38,6 @@ if [ -v aadClientSecret ]; then
38
38
sed -i " s/location-input/$location /g" $AZURE_CREDENTIAL_FILE
39
39
40
40
sudo ${GO_BIN_PATH} test -v ./test/sanity/...
41
- # make it always succeed for now until enabled sanity test on CI
42
- exit 0
43
41
else
44
42
if [ -v subscriptionId ]; then
45
43
echo " skip sanity test in CI env"
You can’t perform that action at this time.
0 commit comments