-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
42 lines (40 loc) · 1.51 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
sudo: required
language: go
go:
- 1.11
- 1.14
- tip
matrix:
allow_failures:
- go: tip
services:
- docker
before_install:
- mkdir -p ./.local/s3_data
- chmod 777 ./.local/s3_data
- docker-compose up -d
- go get github.com/axw/gocov/gocov github.com/modocache/gover github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/stretchr/testify/assert
- go get -v ./...
before_script:
- go vet ./... 2>&1 | grep -v "\(in Errorf call\|exit status 1\)" > vet.log ; test ! -s vet.log
- gofmt -s -l .
script:
- go test ./cloudtrail -coverprofile="cloudtrail.coverprofile"
- go test ./cloudwatch -coverprofile="cloudwatch.coverprofile"
- go test ./costexplorer -coverprofile="costexplorer.coverprofile"
- go test ./config -coverprofile="config.coverprofile"
- go test ./dynamodb -coverprofile="dynamodb.coverprofile"
- go test ./iam -coverprofile="iam.coverprofile"
- go test ./kinesis -coverprofile="kinesis.coverprofile"
- go test ./kms -coverprofile="kms.coverprofile"
- go test ./pinpointemail -coverprofile="pinpointemail.coverprofile"
- go test ./rekognition -coverprofile="rekognition.coverprofile"
- go test ./s3 -coverprofile="s3.coverprofile"
- go test ./sns -coverprofile="sns.coverprofile"
- go test ./sqs -coverprofile="sqs.coverprofile"
- go test ./xray -coverprofile="xray.coverprofile"
after_success:
- gover
- cp gover.coverprofile coverage.txt
- bash <(curl -s https://codecov.io/bash)
- $HOME/gopath/bin/goveralls -coverprofile=coverage.txt -service=travis-ci