influxdb/.circleci/config.yml

41 lines
854 B
YAML
Raw Normal View History

2018-05-16 15:43:33 +00:00
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.10.2
2018-05-22 20:50:10 +00:00
2018-05-16 15:43:33 +00:00
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
2018-05-22 20:50:10 +00:00
- run: make test
2018-05-22 22:19:04 +00:00
- run: make vet
2018-05-22 20:50:10 +00:00
# TODO add these checks to the Makefile
# - run: go get -v -t -d ./...
# - run: go get honnef.co/go/tools/cmd/megacheck
# - run: megacheck ./...
deploy:
docker:
- image: circleci/golang:1.10.2
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
- run: |
docker login -u "$QUAY_USER" -p $QUAY_PASS quay.io
make nightly
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master