.travis.yml 382 B

123456789101112131415161718
  1. language: go
  2. os: linux
  3. dist: xenial
  4. go:
  5. - 1.13.x
  6. - 1.14.x
  7. go_import_path: gogs.io/gogs
  8. env:
  9. - GO111MODULE=on
  10. before_install:
  11. - sudo apt-get update -qq
  12. - sudo apt-get install -y libpam-dev
  13. script:
  14. - go vet ./...
  15. - go build -v -tags "pam"
  16. - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
  17. after_success:
  18. - bash <(curl -s https://codecov.io/bash)