mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Drone: Report front-end test metrics (#27395)
* Drone: Report front-end test metrics Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * ci-frontend-metrics.sh: Fix collection bugs; print JSON Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Add Yarn script ci:test-frontend
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -26,7 +26,7 @@ steps:
|
||||
- yarn install --frozen-lockfile --no-progress
|
||||
environment:
|
||||
DOCKERIZE_VERSION: 0.6.1
|
||||
GRABPL_VERSION: 0.5.5
|
||||
GRABPL_VERSION: 0.5.6
|
||||
|
||||
- name: lint-backend
|
||||
image: grafana/build-container:1.2.26
|
||||
@@ -74,10 +74,7 @@ steps:
|
||||
- name: test-frontend
|
||||
image: grafana/build-container:1.2.26
|
||||
commands:
|
||||
- yarn run prettier:check
|
||||
- yarn run packages:typecheck
|
||||
- yarn run typecheck
|
||||
- yarn run test
|
||||
- yarn run ci:test-frontend
|
||||
environment:
|
||||
TEST_MAX_WORKERS: 50%
|
||||
depends_on:
|
||||
@@ -252,7 +249,7 @@ steps:
|
||||
- yarn install --frozen-lockfile --no-progress
|
||||
environment:
|
||||
DOCKERIZE_VERSION: 0.6.1
|
||||
GRABPL_VERSION: 0.5.5
|
||||
GRABPL_VERSION: 0.5.6
|
||||
|
||||
- name: lint-backend
|
||||
image: grafana/build-container:1.2.26
|
||||
@@ -300,12 +297,11 @@ steps:
|
||||
- name: test-frontend
|
||||
image: grafana/build-container:1.2.26
|
||||
commands:
|
||||
- yarn run prettier:check
|
||||
- yarn run packages:typecheck
|
||||
- yarn run typecheck
|
||||
- yarn run test
|
||||
- yarn run ci:test-frontend
|
||||
- ./scripts/ci-frontend-metrics.sh | ./bin/grabpl publish-metrics $${GRAFANA_MISC_STATS_API_KEY}
|
||||
environment:
|
||||
TEST_MAX_WORKERS: 50%
|
||||
GRAFANA_MISC_STATS_API_KEY:
|
||||
from_secret: grafana_misc_stats_api_key
|
||||
depends_on:
|
||||
- initialize
|
||||
|
||||
@@ -519,7 +515,7 @@ steps:
|
||||
- gcloud auth activate-service-account --key-file=gcpkey.json
|
||||
- rm gcpkey.json
|
||||
- $$ProgressPreference = "SilentlyContinue"
|
||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.5/windows/grabpl.exe -OutFile grabpl.exe
|
||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.6/windows/grabpl.exe -OutFile grabpl.exe
|
||||
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/oss/master/grafana-7.2.0-9fffe273pre.windows-amd64.zip -OutFile grafana.zip
|
||||
- cp C:\App\nssm-2.24.zip .
|
||||
- ./grabpl.exe windows-installer --edition oss grafana.zip
|
||||
|
||||
Reference in New Issue
Block a user