kamiazya/memomail

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: go
go_import_path: github.com/kamiazya/memomail

go:
  - "1.8.x"
  - "1.9.x"
  - "1.10"
  - tip

before_install:
  - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

install:
  - go get github.com/spf13/viper
  - go get gopkg.in/gomail.v2
  - go get golang.org/x/crypto/ssh/terminal
  - go test -v .

# script:
#   - go test -race -coverprofile=coverage.txt -covermode=atomic
#   - go test -coverprofile c.out ./...

# after_script:
#   - ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT

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