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 ./...
|
2018-05-22 20:42:32 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
docker:
|
|
|
|
- image: circleci/golang:1.10.2
|
|
|
|
working_directory: /go/src/github.com/influxdata/platform
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-07-17 19:03:40 +00:00
|
|
|
- run: |
|
|
|
|
docker login -u "$QUAY_USER" -p $QUAY_PASS quay.io
|
|
|
|
make nightly
|
2018-05-22 20:42:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build-and-deploy:
|
|
|
|
jobs:
|
|
|
|
- build
|
|
|
|
- deploy:
|
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
|