forked from aws/aws-lambda-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (27 loc) · 866 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
language: go
go:
- 1.12.x
- 1.11.x
- tip
env: GO111MODULE=on
before_install:
- go mod download
install:
- go get golang.org/x/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)