-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (41 loc) · 1.13 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
environment:
GOVERSION: "1.8.1"
GOPATH: "${HOME}/.go_workspace"
WORKDIR: "${GOPATH}/src/k8s.io/helm"
PROJECT_NAME: "kubernetes-helm"
services:
- docker
dependencies:
cache_directories:
- "~/.glide"
pre:
# remove old go files
- sudo rm -rf /usr/local/go
- rm -rf "$GOPATH"
override:
# install go
- wget "https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz" -O "${HOME}/go${GOVERSION}.tar.gz"
- sudo tar -C /usr/local -xzf "${HOME}/go${GOVERSION}.tar.gz"
# move repository to the canonical import path
- mkdir -p "$(dirname ${WORKDIR})"
- cp -R "${HOME}/helm" "${WORKDIR}"
# install dependencies
- cd "${WORKDIR}" && make bootstrap
post:
- go env
test:
override:
- cd "${WORKDIR}" && ./scripts/ci.sh:
parallel: true
deployment:
release:
tag: /.*/
commands:
- cd "${WORKDIR}" && ./scripts/ci/deploy.sh
canary:
branch: master
commands:
- cd "${WORKDIR}" && ./scripts/ci/deploy.sh