grafana/circle.yml
2017-01-24 15:24:43 +01:00

55 lines
1.5 KiB
YAML

machine:
node:
version: 6.9.2
python:
version: 2.7.3
services:
- docker
environment:
GOPATH: "/home/ubuntu/.go_workspace"
ORG_PATH: "github.com/grafana"
REPO_PATH: "${ORG_PATH}/grafana"
GODIST: "go1.7.4.linux-amd64.tar.gz"
post:
- mkdir -p download
- 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
dependencies:
cache_directories:
- "~/docker"
- "~/download"
override:
- rm -rf ${GOPATH}/src/${REPO_PATH}
- mkdir -p ${GOPATH}/src/${ORG_PATH}
- cp -r ~/grafana ${GOPATH}/src/${ORG_PATH}
test:
override:
- bash scripts/circle-test.sh
deployment:
gh_branch:
branch: new_deploy
owner: grafana
commands:
- pip install awscli
- ./scripts/build/build_container.sh
- ./scripts/build/deploy.sh
- aws s3 sync ./dist s3://$NIGHTLY_BUCKET_NAME
#- ./scripts/build/sign_packages.sh
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
gh_tag:
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
owner: grafana
commands:
- echo lets release stuff!
- pip install awscli
- ./scripts/build/build_container.sh
- ./scripts/build/deploy.sh
#- ./scripts/build/sign_packages.sh
#- aws s3 sync ./dist s3://$BUCKET_NAME
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}