language: go

os:
  - linux
  - osx

go:
  - "1.13"

env:
  - GO111MODULE=on

install: true

script:
  - go fmt ./... && [[ -z `git status -s` ]]
  - chmod u+x before_ut.sh && ./before_ut.sh
  - go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  webhooks: https://oapi.dingtalk.com/robot/send?access_token=f5d6237f2c79db584e75604f7f88db1ce1673c8c0e98451217b28fde791e1d4f