You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
846 B

  1. language: go
  2. cache:
  3. directories:
  4. - $GOCACHE
  5. - $GOPATH/pkg/mod
  6. - $GOPATH/src/github.com/btcsuite
  7. - $GOPATH/src/github.com/golang
  8. - $GOPATH/src/gopkg.in/alecthomas
  9. # Remove Travis' default flag --depth=50 from the git clone command to make sure
  10. # we have the whole git history, including the commit we lint against.
  11. git:
  12. depth: false
  13. go:
  14. - "1.13.x"
  15. env:
  16. global:
  17. - GOCACHE=$HOME/.go-build
  18. sudo: required
  19. script:
  20. - export GO111MODULE=on
  21. - make lint unit build mod-check
  22. - make tags=dev
  23. after_script:
  24. - echo "Uploading to termbin.com..." && find *.log | xargs -I{} sh -c "cat {} | nc termbin.com 9999 | xargs -r0 printf '{} uploaded to %s'"
  25. - echo "Uploading to file.io..." && tar -zcvO *.log | curl -s -F 'file=@-;filename=logs.tar.gz' https://file.io | xargs -r0 printf 'logs.tar.gz uploaded to %s\n'