forked from sendgrid/sendgrid-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 1.18 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
language: go
go:
- '1.6'
- '1.7'
- '1.8'
- '1.9'
- 'tip'
before_script:
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install
- $HOME/gopath/src/github.com/sendgrid/sendgrid-go/prism.sh
before_install:
- go get -t -v ./...
script:
- ./go.test.sh
- gometalinter --disable-all --enable=errcheck --enable=vet --enable=vetshadow --enable=megacheck --exclude=S1024 # TODO: remove exclude when we stop support Go 1.7 and lower
- gometalinter --disable-all --enable=errcheck --enable=vet --enable=vetshadow --enable=megacheck helpers/...
- go test -cover -v -race ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
hipchat:
rooms:
secure: ebEe+SoHExe1JALPXIutdtWNUYRR1ic9rB9oda+9oYsr+BNnPy50eqKjzAskcULbdmZqhgmHSoTgegiE5IOGZpAi6sumBA422K860x3VoS2cqm2sBSb1o85uoSiVJQ+AMS6lEZH/w7V3wAq+ukCK0Xs3rlxEsz9Byb6I/woU8lE=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/sendgrid/%{repository}/commits/%{commit}">View on GitHub</a>'
format: html
notify: true