1
0
mirror of https://github.com/distribution/distribution synced 2024-11-12 05:45:51 +01:00
distribution/circle.yml
Stephen J Day e15e07cb40 Disable race detector during tests due to memory usage
The tests are using way too much memory with the race detector enabled causing
the build machines to fall over. Cursory profiling shows no leaks but it may
need a closer look. For now, it will be disabled but this cannot be permanent.
2014-12-05 20:22:36 -08:00

67 lines
2.0 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

machine:
pre:
- curl -o go.tar.gz -sL https://golang.org/dl/go1.4rc2.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go.tar.gz
- sudo chmod a+w /usr/local/go/src/
hosts:
fancy: 127.0.0.1
dependencies:
post:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/golang/lint/golint
test:
pre:
- go version
override:
- test -z $(gofmt -s -l . | tee /dev/stderr)
- go vet ./...
- test -z $(golint ./... | tee /dev/stderr)
- go test -test.v ./...
# Disabling the race detector due to massive memory usage.
# - go test -race -test.v ./...:
# timeout: 600
# TODO(stevvooe): The following is an attempt at using goveralls but it
# just doesn't work. goveralls requires a single profile file to be
# submitted at once, but can't run all of the tests for all the packages
# at once. The command below attempts to fix this but fails because it
# creates a new "job" for run of coveralls, making it so that the coverage
# is partially reported a large number of times.
# - cd $HOME/.go_project/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME && go list ./... | xargs -I{} goveralls -service circleci -repotoken $COVERALLS_TOKEN -race {}
general:
branches:
ignore:
- master
- 0.7
- 0.8
- 0.9
- 1.0
# This doesn't work, but it would be nice if it did.
# build_dir: ../.go_project/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# notify:
# email:
# recipients:
# - distribution@docker.com
# slack:
# team: docker
# channel: "#dt"
# username: mom
# token: {{SLACK_TOKEN}}
# on_success: false
# on_failure: true
# Do we want these as well?
# - go get code.google.com/p/go.tools/cmd/goimports
# - test -z "$(goimports -l -w ./... | tee /dev/stderr)"
# http://labix.org/gocheck