-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
46 lines (35 loc) · 1.01 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
43
44
45
46
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
script:
- mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
- mkdir -p $GOPATH/src/github.com/IBM/ibmcloud-volume-file-vpc
- rsync -az . $GOPATH/src/github.com/IBM/ibmcloud-volume-file-vpc
- make vet
- make fmt
- travis_wait 300 make test
- make coverage && touch "Passing" || touch "Failed"
after_success:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GHE_TOKEN}:@github.com" > .git/credentials
- "./scripts/calculateCoverage.sh"
- "./scripts/publishCoverage.sh"
after_failure:
- "./scripts/handleFailure.sh"