wercker.yml 892 B

1234567891011121314151617181920212223242526272829303132333435
  1. box: yosssi/golang-latest@1.0.7
  2. # Build definition
  3. build:
  4. # The steps that will be executed on build
  5. steps:
  6. # Sets the go workspace and places you package
  7. # at the right place in the workspace tree
  8. - setup-go-workspace
  9. # Gets the dependencies
  10. - script:
  11. name: go get
  12. code: |
  13. cd $WERCKER_SOURCE_DIR
  14. go version
  15. go get -t ./...
  16. # Build the project
  17. - script:
  18. name: go build
  19. code: |
  20. go build ./...
  21. # Test the project
  22. - script:
  23. name: go test
  24. code: |
  25. go test -cover ./...
  26. # Invoke goveralls
  27. - script:
  28. name: goveralls
  29. code: |
  30. go get github.com/mattn/goveralls
  31. go test -v -covermode=count -coverprofile=coverage.out
  32. goveralls -coverprofile=coverage.out -service=wercker.com -repotoken $COVERALLS_REPO_TOKEN