|
|
|
|
@@ -14,7 +14,7 @@ steps:
|
|
|
|
|
- echo $DRONE_RUNNER_NAME
|
|
|
|
|
|
|
|
|
|
- name: initialize
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v$${GRABPL_VERSION}/grabpl
|
|
|
|
|
- chmod +x grabpl
|
|
|
|
|
@@ -29,7 +29,7 @@ steps:
|
|
|
|
|
GRABPL_VERSION: 0.5.5
|
|
|
|
|
|
|
|
|
|
- name: lint-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- golangci-lint run --config scripts/go/configs/.golangci.toml ./pkg/...
|
|
|
|
|
- revive -formatter stylish -config scripts/go/configs/revive.toml ./pkg/...
|
|
|
|
|
@@ -40,7 +40,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: codespell
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- "echo -e \"unknwon\nreferer\nerrorstring\neror\niam\" > words_to_ignore.txt"
|
|
|
|
|
- codespell -I words_to_ignore.txt docs/
|
|
|
|
|
@@ -48,7 +48,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: shellcheck
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- curl -fLO http://storage.googleapis.com/grafana-downloads/ci-dependencies/shellcheck-v$${VERSION}.linux.x86_64.tar.xz
|
|
|
|
|
- echo $$CHKSUM shellcheck-v$${VERSION}.linux.x86_64.tar.xz | sha512sum --check --strict --status
|
|
|
|
|
@@ -63,7 +63,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: test-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl test-backend
|
|
|
|
|
- ./bin/grabpl integration-tests
|
|
|
|
|
@@ -72,7 +72,7 @@ steps:
|
|
|
|
|
- lint-backend
|
|
|
|
|
|
|
|
|
|
- name: test-frontend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- yarn run prettier:check
|
|
|
|
|
- yarn run packages:typecheck
|
|
|
|
|
@@ -84,7 +84,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: build-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition oss --build-id $DRONE_BUILD_NUMBER --variants linux-x64,linux-x64-musl,osx64,win64 --no-pull-enterprise
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -93,7 +93,7 @@ steps:
|
|
|
|
|
- test-backend
|
|
|
|
|
|
|
|
|
|
- name: build-frontend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-frontend --jobs 8 --no-install-deps --edition oss --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -101,7 +101,7 @@ steps:
|
|
|
|
|
- test-frontend
|
|
|
|
|
|
|
|
|
|
- name: build-plugins
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-plugins --jobs 8 --edition oss --no-install-deps
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -109,7 +109,7 @@ steps:
|
|
|
|
|
- lint-backend
|
|
|
|
|
|
|
|
|
|
- name: package
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --jobs 8 --edition oss --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise --variants linux-x64,linux-x64-musl,osx64,win64
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -122,7 +122,7 @@ steps:
|
|
|
|
|
- shellcheck
|
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
detach: true
|
|
|
|
|
commands:
|
|
|
|
|
- ./e2e/start-server
|
|
|
|
|
@@ -140,7 +140,7 @@ steps:
|
|
|
|
|
- end-to-end-tests-server
|
|
|
|
|
|
|
|
|
|
- name: build-storybook
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- yarn storybook:build
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -156,7 +156,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: copy-packages-for-docker
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- cp dist/*.tar.gz packaging/docker/
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -172,7 +172,7 @@ steps:
|
|
|
|
|
- copy-packages-for-docker
|
|
|
|
|
|
|
|
|
|
- name: postgres-integration-tests
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- apt-get update
|
|
|
|
|
- apt-get install -yq postgresql-client
|
|
|
|
|
@@ -189,7 +189,7 @@ steps:
|
|
|
|
|
- test-frontend
|
|
|
|
|
|
|
|
|
|
- name: mysql-integration-tests
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- apt-get update
|
|
|
|
|
- apt-get install -yq default-mysql-client
|
|
|
|
|
@@ -240,7 +240,7 @@ steps:
|
|
|
|
|
- echo $DRONE_RUNNER_NAME
|
|
|
|
|
|
|
|
|
|
- name: initialize
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v$${GRABPL_VERSION}/grabpl
|
|
|
|
|
- chmod +x grabpl
|
|
|
|
|
@@ -255,7 +255,7 @@ steps:
|
|
|
|
|
GRABPL_VERSION: 0.5.5
|
|
|
|
|
|
|
|
|
|
- name: lint-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- golangci-lint run --config scripts/go/configs/.golangci.toml ./pkg/...
|
|
|
|
|
- revive -formatter stylish -config scripts/go/configs/revive.toml ./pkg/...
|
|
|
|
|
@@ -266,7 +266,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: codespell
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- "echo -e \"unknwon\nreferer\nerrorstring\neror\niam\" > words_to_ignore.txt"
|
|
|
|
|
- codespell -I words_to_ignore.txt docs/
|
|
|
|
|
@@ -274,7 +274,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: shellcheck
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- curl -fLO http://storage.googleapis.com/grafana-downloads/ci-dependencies/shellcheck-v$${VERSION}.linux.x86_64.tar.xz
|
|
|
|
|
- echo $$CHKSUM shellcheck-v$${VERSION}.linux.x86_64.tar.xz | sha512sum --check --strict --status
|
|
|
|
|
@@ -289,7 +289,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: test-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl test-backend
|
|
|
|
|
- ./bin/grabpl integration-tests
|
|
|
|
|
@@ -298,7 +298,7 @@ steps:
|
|
|
|
|
- lint-backend
|
|
|
|
|
|
|
|
|
|
- name: test-frontend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- yarn run prettier:check
|
|
|
|
|
- yarn run packages:typecheck
|
|
|
|
|
@@ -310,7 +310,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: build-backend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition oss --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -319,7 +319,7 @@ steps:
|
|
|
|
|
- test-backend
|
|
|
|
|
|
|
|
|
|
- name: build-frontend
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-frontend --jobs 8 --no-install-deps --edition oss --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -327,7 +327,7 @@ steps:
|
|
|
|
|
- test-frontend
|
|
|
|
|
|
|
|
|
|
- name: build-plugins
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- ./bin/grabpl build-plugins --jobs 8 --edition oss --no-install-deps
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -335,7 +335,7 @@ steps:
|
|
|
|
|
- lint-backend
|
|
|
|
|
|
|
|
|
|
- name: package
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --jobs 8 --edition oss --build-id $DRONE_BUILD_NUMBER --no-pull-enterprise
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -348,7 +348,7 @@ steps:
|
|
|
|
|
- shellcheck
|
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
detach: true
|
|
|
|
|
commands:
|
|
|
|
|
- ./e2e/start-server
|
|
|
|
|
@@ -366,7 +366,7 @@ steps:
|
|
|
|
|
- end-to-end-tests-server
|
|
|
|
|
|
|
|
|
|
- name: build-storybook
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- yarn storybook:build
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -394,7 +394,7 @@ steps:
|
|
|
|
|
- initialize
|
|
|
|
|
|
|
|
|
|
- name: copy-packages-for-docker
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- cp dist/*.tar.gz packaging/docker/
|
|
|
|
|
depends_on:
|
|
|
|
|
@@ -418,7 +418,7 @@ steps:
|
|
|
|
|
- copy-packages-for-docker
|
|
|
|
|
|
|
|
|
|
- name: postgres-integration-tests
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- apt-get update
|
|
|
|
|
- apt-get install -yq postgresql-client
|
|
|
|
|
@@ -435,7 +435,7 @@ steps:
|
|
|
|
|
- test-frontend
|
|
|
|
|
|
|
|
|
|
- name: mysql-integration-tests
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- apt-get update
|
|
|
|
|
- apt-get install -yq default-mysql-client
|
|
|
|
|
@@ -451,7 +451,7 @@ steps:
|
|
|
|
|
- test-frontend
|
|
|
|
|
|
|
|
|
|
- name: release-next-npm-packages
|
|
|
|
|
image: grafana/build-container:1.2.24
|
|
|
|
|
image: grafana/build-container:1.2.26
|
|
|
|
|
commands:
|
|
|
|
|
- npx lerna bootstrap
|
|
|
|
|
- echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> ~/.npmrc
|
|
|
|
|
|