Skip to content

Commit

Permalink
add travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
viney-shih committed Jun 9, 2022
1 parent dad4acb commit 18fe932
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: go

go:
- "1.16"
- "1.17"
- "1.18"
- master

services:
- docker

before_install:
- go get github.com/mattn/goveralls
- docker pull redis:5.0.14-alpine
- docker run --name unittest-redis -d redis
- 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 unittest-redis

0 comments on commit 18fe932

Please sign in to comment.