github.com/lusis/distribution@v2.0.1+incompatible/.drone.yml (about)

     1  image: dmp42/go:stable
     2  
     3  script:
     4    # To be spoofed back into the test image
     5    - go get github.com/modocache/gover
     6  
     7    - go get -t ./...
     8  
     9    # Go fmt
    10    - test -z "$(gofmt -s -l -w .     | tee /dev/stderr)"
    11    # Go lint
    12    - test -z "$(golint ./...          | tee /dev/stderr)"
    13    # Go vet
    14    - go vet ./...
    15    # Go test
    16    - go test -v -race -cover ./...
    17    # Helper to concatenate reports
    18    - gover
    19    # Send to coverall
    20    - goveralls -service drone.io -coverprofile=gover.coverprofile -repotoken {{COVERALLS_TOKEN}}
    21  
    22    # Do we want these as well?
    23    # - go get code.google.com/p/go.tools/cmd/goimports
    24    # - test -z "$(goimports -l -w ./... | tee /dev/stderr)"
    25    # http://labix.org/gocheck
    26  
    27  notify:
    28      email:
    29          recipients:
    30              - distribution@docker.com
    31  
    32      slack:
    33          team: docker
    34          channel: "#dt"
    35          username: mom
    36          token: {{SLACK_TOKEN}}
    37          on_success: true
    38          on_failure: true