Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| machine: | |
| pre: | |
| - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 | |
| environment: | |
| # Used by https://godoc.org/github.com/docker/engine-api/client#NewEnvClient. | |
| # Matches the docker daemon version in use. | |
| # See https://docs.docker.com/engine/reference/api/docker_remote_api/ | |
| DOCKER_API_VERSION: v1.22 | |
| services: | |
| - docker | |
| checkout: | |
| post: | |
| # git tags are used to generate build info which is baked into the | |
| # CockroachDB binary; unfortunately, it is not possible to fetch all tags | |
| # without also unshallowing the checkout, so we must do both. | |
| - git fetch --unshallow --tags | |
| # GOPATH is cached, so we need to clean out the version from the previous | |
| # run or the subsequent `mv` will fail. We put our checkout in the correct | |
| # location for the OSX build step. | |
| - rm -rf "${GOPATH%%:*}/src/github.com/cockroachdb/cockroach" | |
| - mkdir -p "${GOPATH%%:*}/src/github.com/cockroachdb/" | |
| - mv ~/cockroach "${GOPATH%%:*}/src/github.com/cockroachdb/" | |
| - ln -s "${GOPATH%%:*}/src/github.com/cockroachdb/cockroach" ~/cockroach | |
| dependencies: | |
| override: | |
| - build/circle-deps.sh: | |
| parallel: true | |
| cache_directories: | |
| - ~/.jspm | |
| - ~/.npm | |
| - ~/builder | |
| test: | |
| override: | |
| - build/circle-test.sh: | |
| parallel: true | |
| deployment: | |
| master: | |
| branch: master | |
| commands: | |
| - sed "s/<EMAIL>/$DOCKER_EMAIL/;s/<AUTH>/$DOCKER_AUTH/" < "resource/deploy_templates/.dockercfg.template" > ~/.dockercfg | |
| - | | |
| export VERSION=$(git describe || git rev-parse --short HEAD) | |
| echo "Deploying ${VERSION}..." | |
| if [ -n "$DOCKER_EMAIL" ]; then | |
| build/push-docker-deploy.sh | |
| fi | |
| - aws configure set region us-east-1 | |
| - build/builder.sh build/build-static-binaries.sh | |
| - mkdir -p "${CIRCLE_ARTIFACTS}/acceptance_deploy" | |
| - time acceptance/acceptance.test -test.v -test.timeout 10m | |
| -i cockroachdb/cockroach -nodes 3 | |
| -l "${CIRCLE_ARTIFACTS}"/acceptance_deploy 2>&1 > | |
| "${CIRCLE_ARTIFACTS}/acceptance_deploy.log" | |
| - build/build-osx.sh | |
| - build/push-aws.sh | |
| release: | |
| tag: /beta-[0-9]+/ | |
| commands: | |
| - sed "s/<EMAIL>/$DOCKER_EMAIL/;s/<AUTH>/$DOCKER_AUTH/" < "resource/deploy_templates/.dockercfg.template" > ~/.dockercfg | |
| - | | |
| export VERSION=$CIRCLE_TAG | |
| echo "Deploying ${VERSION}..." | |
| if [ -n "$DOCKER_EMAIL" ]; then | |
| build/push-docker-deploy.sh | |
| fi | |
| - aws configure set region us-east-1 | |
| - build/builder.sh build/build-static-binaries.sh | |
| - mkdir -p "${CIRCLE_ARTIFACTS}/acceptance_deploy" | |
| - time acceptance/acceptance.test -test.v -test.timeout 10m | |
| -i cockroachdb/cockroach -nodes 3 | |
| -l "${CIRCLE_ARTIFACTS}"/acceptance_deploy > | |
| "${CIRCLE_ARTIFACTS}/acceptance_deploy.log" 2>&1 | |
| - build/build-osx.sh | |
| - build/push-tagged-aws.sh | |
| datarace: | |
| branch: data-race | |
| commands: | |
| - aws configure set region us-east-1 | |
| - build/builder.sh build/build-race-binaries.sh | |
| - build/push-one-binary.sh "${CIRCLE_SHA1-$(git rev-parse HEAD)}" cockroach cockroach.race | |
| stdmalloc: | |
| branch: stdmalloc | |
| commands: | |
| - aws configure set region us-east-1 | |
| - build/builder.sh build/build-stdmalloc-binaries.sh | |
| - build/push-one-binary.sh "${CIRCLE_SHA1-$(git rev-parse HEAD)}" cockroach cockroach.stdmalloc | |
| - build/push-one-binary.sh "${CIRCLE_SHA1-$(git rev-parse HEAD)}" static-tests.stdmalloc.tar.gz | |
| beta: | |
| branch: /branch-beta-[0-9]+/ | |
| commands: | |
| - aws configure set region us-east-1 | |
| - build/builder.sh build/build-static-binaries.sh | |
| - build/push-one-binary.sh "${CIRCLE_SHA1-$(git rev-parse HEAD)}" cockroach cockroach.beta |