viney-shih/go-cache

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: go

go:
    - "1.17"
    - "1.18"
    - "1.19"

services:
    - docker

before_install:
    - go get github.com/mattn/goveralls
    - docker pull redis:5.0.14-alpine
    - docker run --name redis -p 6379:6379 -d redis:5.0.14-alpine
    - docker ps -a

script:
    - go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

after_success:
    - $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci # upload to `coveralls`
    - bash <(curl -s https://codecov.io/bash) # upload to `codecov`
    - docker rm -f redis