grafana/circle.yml

57 lines
1.7 KiB
YAML
Raw Normal View History

machine:
node:
version: 6.9.2
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"
2016-12-02 14:27:12 -06:00
GODIST: "go1.7.4.linux-amd64.tar.gz"
post:
- mkdir -p ~/download
- mkdir -p ~/docker
- 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:52:31 -06:00
dependencies:
cache_directories:
- "~/docker"
- "~/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}
- cp -r ~/grafana ${GOPATH}/src/${ORG_PATH}
2015-03-07 05:46:17 -06:00
test:
2015-03-07 05:43:17 -06:00
override:
- bash scripts/circle-test.sh
deployment:
gh_branch:
2017-01-30 09:24:50 -06:00
branch: new_master
commands:
- pip install awscli
- sudo apt-get update; sudo apt-get install rpm; sudo apt-get install expect
- ./scripts/build/build_container.sh
- ./scripts/build/deploy.sh
2017-01-24 08:28:30 -06:00
- ./scripts/build/sign_packages.sh
- go run build.go sha1-dist
- aws s3 sync ./dist s3://$BUCKET_NAME/master
2017-01-23 09:50:04 -06:00
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
gh_tag:
tag: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
commands:
- pip install awscli
- sudo apt-get update; sudo apt-get install rpm; sudo apt-get install expect
- ./scripts/build/build_container.sh
- ./scripts/build/deploy.sh
- ./scripts/build/sign_packages.sh
- go run build.go sha1-dist
- aws s3 sync ./dist s3://$BUCKET_NAME/release
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}