forked from IBM/ibmcloud-storage-volume-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.72 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: go
go:
- 1.15.5
- tip
group: bluezone
matrix:
fast_finish: true
allow_failures:
- go: tip
cache:
bundler: true
sudo: true
before_install:
- openssl aes-256-cbc -K $encrypted_7937b810c182_key -iv $encrypted_7937b810c182_iv
-in ./e2e/config/secret.txt.enc -out secret.txt -d || true
- sudo add-apt-repository ppa:masterminds/glide -y && sudo apt-get update -q
- sudo apt-get install glide -y
- sudo apt-get install bc
before_script:
- make deps
- go get github.com/pierrre/gotestcover
script:
- mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
- mkdir -p $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib
- rsync -az . $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib
- cd $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib
- source secret.txt
- sed -i "s/"It\(\"VPC"/"PIt\(\"VPC"/g" $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib/e2e/vpc/vpc_create_six_volumes_attach_detach_delete_volumes.go
- sed -i "s/"It\(\"VPC"/"PIt\(\"VPC"/g" $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib/e2e/vpc/vpc_create_volume_attach_detach_volume.go
- sed -i "s/RIAAS_ENDPOINT_URL/"$RIAAS_ENDPOINT_URL"/g" $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib/e2e/config/vpc-config.toml
- sed -i "s/RESOURCE_GROUP/"$RESOURCE_GROUP"/g" $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib/e2e/config/vpc-config.toml
- sed -i "s/IAM_API_KEY/"$IAM_API_KEY"/g" $GOPATH/src/github.com/IBM/ibmcloud-storage-volume-lib/e2e/config/vpc-config.toml
- make vet
- make fmt
- travis_wait 300 make test
- make coverage && touch "Passing" || touch "Failed"
#- travis_wait 800 make volume-lib-e2e-test
after_success:
- "./scripts/calculateCoverage.sh"
- "./scripts/publishCoverage.sh"
after_failure:
- "./scripts/handleFailure.sh"