Skip to content

Commit

Permalink
Merge pull request #2 from lnquy/develop
Browse files Browse the repository at this point in the history
Add Travis CI
  • Loading branch information
lnquy authored Apr 12, 2020
2 parents c07624a + fe8f77f commit 151d035
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: false

language: go

env:
- GO111MODULE=on

go:
- "1.13.x"
- "1.14.x"
go_import_path: github.com/lnquy/cron

git:
depth: 1

before_script:
- go get github.com/mattn/goveralls

script:
#- make vet
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit; fi'
- go test -race -covermode=atomic -coverprofile=coverage.out ./...
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

0 comments on commit 151d035

Please sign in to comment.