forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
52 lines (47 loc) · 1.69 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
checkout:
post:
- git fetch --unshallow || true
- git fetch --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:
- ~/builder
- ~/uicache
test:
override:
- build/circle-test.sh:
parallel: true
deployment:
docker:
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/build-static-binaries.sh
- mkdir -p "${CIRCLE_ARTIFACTS}/acceptance_deploy"
- time acceptance/acceptance.test -test.v -test.timeout 5m
-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