Codebase list golang-github-renekroon-ttlcache / 881e1861-82ae-40fe-b495-618bf342159d/upstream .travis.yml
881e1861-82ae-40fe-b495-618bf342159d/upstream

Tree @881e1861-82ae-40fe-b495-618bf342159d/upstream (Download .tar.gz)

.travis.yml @881e1861-82ae-40fe-b495-618bf342159d/upstream

d1510c8
 
 
a3e3889
762a037
 
d1510c8
 
 
 
 
aa8a254
 
d1510c8
762a037
 
d1510c8
 
 
0634dc9
762a037
 
 
language: go

go:
  - "1.16.x"
  - "1.15.x"

git:
  depth: 1

install:
  - go install -race std
  - go install golang.org/x/tools/cmd/cover
  - go install golang.org/x/lint/golint
  - export PATH=$HOME/gopath/bin:$PATH
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls

script:
  - golint .
  - go test -cover -race -count=1 -timeout=30s -run .
  - go test -covermode=count -coverprofile=coverage.out -timeout=90s -run .
  - '[ ! -z "$COVERALLS_TOKEN" ] && $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN'
  - cd bench; go test -run=Bench.* -bench=. -benchmem; cd ..