2015-03-07 05:40:19 -06:00
|
|
|
machine:
|
2015-09-13 05:13:47 -05:00
|
|
|
node:
|
2017-10-22 12:19:29 -05:00
|
|
|
version: 6.11.4
|
2017-01-23 08:09:18 -06:00
|
|
|
python:
|
|
|
|
version: 2.7.3
|
|
|
|
services:
|
|
|
|
- docker
|
2015-03-07 06:07:22 -06:00
|
|
|
environment:
|
|
|
|
GOPATH: "/home/ubuntu/.go_workspace"
|
|
|
|
ORG_PATH: "github.com/grafana"
|
|
|
|
REPO_PATH: "${ORG_PATH}/grafana"
|
2017-10-05 02:01:56 -05:00
|
|
|
GODIST: "go1.9.1.linux-amd64.tar.gz"
|
2016-09-14 09:16:06 -05:00
|
|
|
post:
|
2017-01-27 05:41:05 -06:00
|
|
|
- mkdir -p ~/download
|
|
|
|
- mkdir -p ~/docker
|
2016-09-14 09:16:06 -05:00
|
|
|
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
|
|
|
|
- sudo rm -rf /usr/local/go
|
|
|
|
- sudo tar -C /usr/local -xzf download/$GODIST
|
2015-03-07 05:40:19 -06:00
|
|
|
|
2015-03-07 05:52:31 -06:00
|
|
|
dependencies:
|
2017-01-23 08:09:18 -06:00
|
|
|
cache_directories:
|
|
|
|
- "~/docker"
|
2017-01-23 09:33:54 -06:00
|
|
|
- "~/download"
|
2015-03-07 05:46:17 -06:00
|
|
|
override:
|
2015-03-07 06:07:22 -06:00
|
|
|
- rm -rf ${GOPATH}/src/${REPO_PATH}
|
|
|
|
- mkdir -p ${GOPATH}/src/${ORG_PATH}
|
2016-09-14 09:16:06 -05:00
|
|
|
- cp -r ~/grafana ${GOPATH}/src/${ORG_PATH}
|
2017-01-30 10:27:12 -06:00
|
|
|
pre:
|
|
|
|
- pip install awscli
|
|
|
|
- sudo apt-get update; sudo apt-get install rpm; sudo apt-get install expect
|
|
|
|
- ./scripts/build/build_container.sh
|
|
|
|
|
2015-03-07 05:40:19 -06:00
|
|
|
test:
|
2015-03-07 05:43:17 -06:00
|
|
|
override:
|
2017-10-23 02:06:08 -05:00
|
|
|
- bash scripts/circle-test-frontend.sh
|
|
|
|
- bash scripts/circle-test-backend.sh
|
2016-01-27 13:18:35 -06:00
|
|
|
|
2017-01-23 08:09:18 -06:00
|
|
|
deployment:
|
|
|
|
gh_branch:
|
2017-01-30 10:27:12 -06:00
|
|
|
branch: master
|
2017-01-23 08:09:18 -06:00
|
|
|
commands:
|
|
|
|
- ./scripts/build/deploy.sh
|
2017-01-24 08:28:30 -06:00
|
|
|
- ./scripts/build/sign_packages.sh
|
2017-02-23 13:48:31 -06:00
|
|
|
- go run build.go sha-dist
|
2017-01-24 09:14:01 -06:00
|
|
|
- aws s3 sync ./dist s3://$BUCKET_NAME/master
|
2017-02-01 00:09:36 -06:00
|
|
|
- ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} master
|
2017-02-02 01:59:37 -06:00
|
|
|
- ./scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
|
2017-03-23 05:31:47 -05:00
|
|
|
- go run ./scripts/build/publish.go -apiKey ${GRAFANA_COM_API_KEY}
|
2017-01-23 08:09:18 -06:00
|
|
|
gh_tag:
|
|
|
|
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
|
|
|
commands:
|
2017-01-24 04:24:45 -06:00
|
|
|
- ./scripts/build/deploy.sh
|
2017-01-24 09:14:01 -06:00
|
|
|
- ./scripts/build/sign_packages.sh
|
2017-02-23 13:48:31 -06:00
|
|
|
- go run build.go sha-dist
|
2017-01-24 09:14:01 -06:00
|
|
|
- aws s3 sync ./dist s3://$BUCKET_NAME/release
|
2017-02-01 00:09:36 -06:00
|
|
|
- ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} release
|
2017-02-27 06:26:53 -06:00
|
|
|
- ./scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN} ${CIRCLE_TAG}
|