forked from aws/aws-lambda-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (27 loc) · 974 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
language: go
go:
- 1.9
- tip
before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
install:
- dep ensure
- go get github.com/golang/lint/golint
- go get github.com/haya14busa/goverage
matrix:
allow_failures:
- go: tip
fast_finish: true
notifications:
email: false
before_script:
- PKGS=$(go list ./...)
- LINT_PKGS=$(go list ./... | grep -Ev 'aws-lambda-go/lambda')
script:
- diff -u <(echo -n) <(gofmt -d ./) # Fail if a .go file hasn't been formatted with gofmt
- goverage -v -covermode=atomic -coverprofile=coverage.txt $PKGS # Run all tests with coverage
- go vet -v ./... # static analyisis
- golint $LINT_PKGS # lint - ignore failures for now
after_success:
- bash <(curl -s https://codecov.io/bash)