File: .travis.yml

package info (click to toggle)
golang-github-renekroon-ttlcache 2.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: makefile: 3
file content (23 lines) | stat: -rw-r--r-- 647 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: go

go:
  - "1.15.x"
  - "1.14.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 ..