-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
45 lines (34 loc) · 942 Bytes
/
.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
43
44
45
language: go
go:
- 1.22.0
- 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-volume-vpc
- rsync -az . $GOPATH/src/github.com/IBM/ibmcloud-volume-vpc
- make vet
- make makefmt
- travis_wait 300 make test
- make coverage && touch "Passing" || touch "Failed"
after_success:
- "./scripts/calculateCoverage.sh"
- "./scripts/publishCoverage.sh"
after_failure:
- "./scripts/handleFailure.sh"