Codebase list golang-github-renekroon-ttlcache / ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/main .travis.yml
ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/main

Tree @ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/main (Download .tar.gz)

.travis.yml @ddf6671b-8ee2-4c15-a7bd-a0bbb2ba47ca/mainraw · history · blame

language: go

go:
  - "1.17.x"
  - "1.16.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 .
  - if [ "$TRAVIS_BRANCH" = "master" ]; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi
  - cd bench; go test -run=Bench.* -bench=. -benchmem; cd ..