Add project stuff for CI/make/etc

This commit is contained in:
Brian Goff
2019-06-14 12:49:55 -07:00
parent a894106043
commit 34c355d3fa
6 changed files with 480 additions and 0 deletions

40
.circleci/config.yml Normal file
View File

@@ -0,0 +1,40 @@
version: 2
jobs:
validate:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/virtual-kubelet/alibabacloud-eci
steps:
- checkout
- run:
name: go vet
command: make vet
- run:
name: Install linters
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.16.0
- run:
name: Lint
command: make LINTER_BIN="./bin/golangci-lint" lint
- run:
name: Check go modules
command: make check-mod
test:
docker:
- image: golang:1.12
working_directory: /go/src/github.com/virtual-kubelet/alibabacloud-eci
steps:
- checkout
- run:
name: Build
command: make build
- run:
name: Tests
command: make test
workflows:
version: 2
validate_and_test:
jobs:
- validate
- test