influxdb/.circleci/config.yml

65 lines
1.8 KiB
YAML
Raw Normal View History

2018-05-16 15:43:33 +00:00
version: 2
jobs:
jstest:
2018-05-16 15:43:33 +00:00
docker:
2018-08-28 15:38:30 +00:00
- image: circleci/golang:1.11-node-browsers
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
- run: make test-js
2018-05-22 20:50:10 +00:00
gotest:
docker:
2018-08-28 15:38:30 +00:00
- image: circleci/golang:1.11
environment:
GOCACHE: /tmp/go-cache
2018-05-16 15:43:33 +00:00
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
- restore_cache:
name: Restoring GOCACHE
keys:
- platform-gocache-{{ .Branch }}-{{ .Revision }} # Matches when retrying a single run.
- platform-gocache-{{ .Branch }}- # Matches a new commit on an existing branch.
- platform-gocache- # Matches a new branch.
- run: make test-go # This caches so it may complete quickly.
2018-05-22 22:19:04 +00:00
- run: make vet
- run: make test-go-race # This doesn't cache, and will not complete quickly.
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 ./...
- save_cache:
name: Saving GOCACHE
key: platform-gocache-{{ .Branch }}-{{ .Revision }}
paths:
- /tmp/go-cache
when: always
deploy:
docker:
2018-08-28 15:38:30 +00:00
- image: circleci/golang:1.11-node-browsers
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
- setup_remote_docker
- run: |
docker login -u "$QUAY_USER" -p $QUAY_PASS quay.io
make nightly
workflows:
version: 2
build-and-deploy:
jobs:
- gotest
- jstest
- deploy:
requires:
- gotest
- jstest
filters:
branches:
only: master