Codebase list golang-github-go-playground-validator-v10 / run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main .travis.yml
run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main

Tree @run/ee7e876e-b761-450d-99e4-82f65f3e15fb/main (Download .tar.gz)

.travis.yml @run/ee7e876e-b761-450d-99e4-82f65f3e15fb/mainraw · history · blame

language: go
go:
  - 1.15.2
  - tip
matrix:
  allow_failures:
    - go: tip

notifications:
  email:
    recipients: dean.karn@gmail.com
    on_success: change
    on_failure: always

before_install:
  - go install github.com/mattn/goveralls
  - mkdir -p $GOPATH/src/gopkg.in
  - ln -s $GOPATH/src/github.com/$TRAVIS_REPO_SLUG $GOPATH/src/gopkg.in/validator.v9

# Only clone the most recent commit.
git:
  depth: 1

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

after_success: |
  [ $TRAVIS_GO_VERSION = 1.15.2 ] &&
  goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN