45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: 2
|
|
jobs:
|
|
validate:
|
|
docker:
|
|
- image: circleci/golang:1.10
|
|
working_directory: /go/src/github.com/virtual-kubelet/virtual-kubelet
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Install linters
|
|
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.10.2 && mv ./bin/* /go/bin/
|
|
- run:
|
|
name: Lint
|
|
command: golangci-lint run --new-from-rev "HEAD~$(git rev-list master.. --count)" ./...
|
|
- run:
|
|
name: Dependencies
|
|
command: scripts/validate/dep.sh
|
|
|
|
test:
|
|
docker:
|
|
- image: circleci/golang:1.10
|
|
working_directory: /go/src/github.com/virtual-kubelet/virtual-kubelet
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Create the credentials file
|
|
command: sh scripts/createCredentials.sh
|
|
- run: |
|
|
echo 'export AZURE_AUTH_LOCATION=${outputPathCredsfile}' >> $BASH_ENV
|
|
- run: |
|
|
echo 'export KUBECONFIG=${outputPathKubeConfigFile}' >> $BASH_ENV
|
|
- run:
|
|
name: Build
|
|
command: V=1 make build
|
|
- run:
|
|
name: Tests
|
|
command: V=1 CI=1 SKIP_AWS_E2E=1 make test
|
|
|
|
workflows:
|
|
version: 2
|
|
validate_and_test:
|
|
jobs:
|
|
- validate
|
|
- test
|