mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Upgrade build pipeline tool (#26510)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
358c2d7031
commit
f9239a4d6c
@ -45,7 +45,7 @@ commands:
|
|||||||
- run:
|
- run:
|
||||||
name: "Install Grafana build pipeline tool"
|
name: "Install Grafana build pipeline tool"
|
||||||
command: |
|
command: |
|
||||||
VERSION=0.4.24
|
VERSION=0.4.25
|
||||||
curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v${VERSION}/grabpl
|
curl -fLO https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v${VERSION}/grabpl
|
||||||
chmod +x grabpl
|
chmod +x grabpl
|
||||||
mv grabpl /tmp
|
mv grabpl /tmp
|
||||||
|
@ -22,7 +22,7 @@ steps:
|
|||||||
- cp -r $(yarn cache dir) yarn-cache
|
- cp -r $(yarn cache dir) yarn-cache
|
||||||
environment:
|
environment:
|
||||||
DOCKERIZE_VERSION: 0.6.1
|
DOCKERIZE_VERSION: 0.6.1
|
||||||
GRABPL_VERSION: 0.4.24
|
GRABPL_VERSION: 0.4.25
|
||||||
|
|
||||||
- name: lint-backend
|
- name: lint-backend
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
@ -78,7 +78,7 @@ steps:
|
|||||||
- name: test-backend
|
- name: test-backend
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
commands:
|
commands:
|
||||||
- go test -covermode=atomic ./pkg/...
|
- ./bin/grabpl test-backend
|
||||||
- ./bin/grabpl integration-tests
|
- ./bin/grabpl integration-tests
|
||||||
- cp -r $(go env GOCACHE) go-cache
|
- cp -r $(go env GOCACHE) go-cache
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -250,7 +250,7 @@ steps:
|
|||||||
- cp -r $(yarn cache dir) yarn-cache
|
- cp -r $(yarn cache dir) yarn-cache
|
||||||
environment:
|
environment:
|
||||||
DOCKERIZE_VERSION: 0.6.1
|
DOCKERIZE_VERSION: 0.6.1
|
||||||
GRABPL_VERSION: 0.4.24
|
GRABPL_VERSION: 0.4.25
|
||||||
|
|
||||||
- name: lint-backend
|
- name: lint-backend
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
@ -306,7 +306,7 @@ steps:
|
|||||||
- name: test-backend
|
- name: test-backend
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
commands:
|
commands:
|
||||||
- go test -covermode=atomic ./pkg/...
|
- ./bin/grabpl test-backend
|
||||||
- ./bin/grabpl integration-tests
|
- ./bin/grabpl integration-tests
|
||||||
- cp -r $(go env GOCACHE) go-cache
|
- cp -r $(go env GOCACHE) go-cache
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -129,7 +129,7 @@ def pipeline(name, edition, trigger, steps, services=[]):
|
|||||||
return pipeline
|
return pipeline
|
||||||
|
|
||||||
def init_steps(edition):
|
def init_steps(edition):
|
||||||
grabpl_version = '0.4.24'
|
grabpl_version = '0.4.25'
|
||||||
common_cmds = [
|
common_cmds = [
|
||||||
'curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
'curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
||||||
'tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
'tar -C bin -xzvf dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz',
|
||||||
@ -307,7 +307,7 @@ def test_backend_step():
|
|||||||
],
|
],
|
||||||
'commands': [
|
'commands': [
|
||||||
# First execute non-integration tests in parallel, since it should be safe
|
# First execute non-integration tests in parallel, since it should be safe
|
||||||
'go test -covermode=atomic ./pkg/...',
|
'./bin/grabpl test-backend',
|
||||||
# Then execute integration tests in serial
|
# Then execute integration tests in serial
|
||||||
'./bin/grabpl integration-tests',
|
'./bin/grabpl integration-tests',
|
||||||
# Keep the test cache
|
# Keep the test cache
|
||||||
|
Loading…
Reference in New Issue
Block a user