fleet/.circleci/config.yml
seph 91e365bbd5 Split up Go and JS in CircleCI configuration (#2081)
This removes reliance on the custom kolide/fleet-builder container for CI.
2019-07-29 09:31:42 -07:00

49 lines
1.0 KiB
YAML

version: 2
jobs:
build-go:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/kolide/fleet
steps: &stepsgo
- checkout
- restore_cache:
keys:
- vendor-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
- vendor-cache-{{ .Branch }}
- vendor-cache
- run: make deps-go
- save_cache:
key: vendor-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
paths:
- vendor
- save_cache:
key: vendor-cache-{{ .Branch }}
paths:
- vendor
- save_cache:
key: vendor-cache
paths:
- vendor
- run: make generate-go
- run: make lint-go
- run: make test-go
- run: make build
build-js:
docker:
- image: node:10.16.0
steps: &stepsjs
- checkout
- run: make deps-js
- run: make generate-js
- run: make lint-js
- run: make test-js
workflows:
version: 2
build:
jobs:
- build-go
- build-js