2017-07-16 20:07:04 +00:00
|
|
|
# Golang CircleCI 2.0 configuration file
|
|
|
|
#
|
|
|
|
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
|
|
|
# specify the version
|
2020-04-19 18:07:49 +00:00
|
|
|
- image: circleci/golang:1.14.2
|
2017-07-16 20:07:04 +00:00
|
|
|
|
|
|
|
#### TEMPLATE_NOTE: go expects specific checkout path representing url
|
|
|
|
#### expecting it in the form of
|
|
|
|
#### /go/src/github.com/circleci/go-tool
|
|
|
|
#### /go/src/bitbucket.org/circleci/go-tool
|
2017-11-01 18:25:28 +00:00
|
|
|
working_directory: /go/src/github.com/keel-hq/keel
|
2017-07-16 20:07:04 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
2017-10-02 20:13:26 +00:00
|
|
|
# specify any bash command here prefixed with `run: `
|
|
|
|
- run: make build
|
2019-04-25 16:16:02 +00:00
|
|
|
- run: go get github.com/mfridman/tparse
|
2018-11-23 12:54:57 +00:00
|
|
|
- run: make test
|
|
|
|
lint-scripts:
|
|
|
|
docker:
|
|
|
|
- image: koalaman/shellcheck-alpine
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: lint
|
|
|
|
command: |
|
|
|
|
shellcheck -x .scripts/gen_packages.sh
|
|
|
|
shellcheck -x .scripts/index_repo.sh
|
2018-11-23 14:28:42 +00:00
|
|
|
shellcheck -x .scripts/repo-sync.sh
|
2018-11-23 12:54:57 +00:00
|
|
|
shellcheck -x .test/e2e-kind.sh
|
|
|
|
lint-charts:
|
|
|
|
docker:
|
|
|
|
- image: quay.io/helmpack/chart-testing:v2.0.1
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: lint
|
|
|
|
command: |
|
|
|
|
git remote add k8s https://github.com/keel-hq/keel
|
|
|
|
git fetch k8s master
|
|
|
|
ct lint --config .test/ct.yaml
|
|
|
|
install-charts:
|
|
|
|
machine: true
|
|
|
|
environment:
|
|
|
|
CHART_TESTING_IMAGE: quay.io/helmpack/chart-testing
|
|
|
|
CHART_TESTING_TAG: v2.0.1
|
|
|
|
CHARTS_REPO: https://github.com/keel-hq/keel
|
|
|
|
K8S_VERSION: v1.11.3
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: install
|
|
|
|
command: |
|
|
|
|
.test/e2e-kind.sh
|
|
|
|
no_output_timeout: 3600
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_lint_and_install:
|
|
|
|
jobs:
|
|
|
|
- build
|
|
|
|
- lint-scripts:
|
|
|
|
requires:
|
|
|
|
- build
|
|
|
|
- lint-charts:
|
|
|
|
requires:
|
|
|
|
- lint-scripts
|
|
|
|
- install-charts:
|
|
|
|
requires:
|
|
|
|
- lint-charts
|