Commit ca628832 by Ryan McKinley Committed by Dominik Prokop

grafana/toolkit: improve CircleCI integration (#18071)

* don't actually install grafana in the setup step

* updat eversion changes

* add report stage

* update versions

* don't do failing test

* upate version

* print plugins

* update versions

* copy docs

* Update package.json
parent 1cbec508
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"npmClient": "yarn", "npmClient": "yarn",
"useWorkspaces": true, "useWorkspaces": true,
"packages": ["packages/*"], "packages": ["packages/*"],
"version": "6.4.0-alpha.6" "version": "6.4.0-alpha.12"
} }
{ {
"name": "@grafana/data", "name": "@grafana/data",
"version": "6.4.0-alpha.2", "version": "6.4.0-alpha.12",
"description": "Grafana Data Library", "description": "Grafana Data Library",
"keywords": [ "keywords": [
"typescript" "typescript"
......
{ {
"name": "@grafana/runtime", "name": "@grafana/runtime",
"version": "6.4.0-alpha.2", "version": "6.4.0-alpha.12",
"description": "Grafana Runtime Library", "description": "Grafana Runtime Library",
"keywords": [ "keywords": [
"grafana" "grafana"
......
{ {
"name": "@grafana/toolkit", "name": "@grafana/toolkit",
"version": "6.4.0-alpha.6", "version": "6.4.0-alpha.12",
"description": "Grafana Toolkit", "description": "Grafana Toolkit",
"keywords": [ "keywords": [
"grafana", "grafana",
......
...@@ -15,10 +15,11 @@ import { closeMilestoneTask } from './tasks/closeMilestone'; ...@@ -15,10 +15,11 @@ import { closeMilestoneTask } from './tasks/closeMilestone';
import { pluginDevTask } from './tasks/plugin.dev'; import { pluginDevTask } from './tasks/plugin.dev';
import { import {
ciBuildPluginTask, ciBuildPluginTask,
ciBuildPluginDocsTask,
ciBundlePluginTask, ciBundlePluginTask,
ciTestPluginTask, ciTestPluginTask,
ciPluginReportTask,
ciDeployPluginTask, ciDeployPluginTask,
ciSetupPluginTask,
} from './tasks/plugin.ci'; } from './tasks/plugin.ci';
import { buildPackageTask } from './tasks/package.build'; import { buildPackageTask } from './tasks/package.build';
...@@ -148,37 +149,43 @@ export const run = (includeInternalScripts = false) => { ...@@ -148,37 +149,43 @@ export const run = (includeInternalScripts = false) => {
program program
.command('plugin:ci-build') .command('plugin:ci-build')
.option('--platform <platform>', 'For backend task, which backend to run') .option('--backend <backend>', 'For backend task, which backend to run')
.description('Build the plugin, leaving artifacts in /dist') .description('Build the plugin, leaving artifacts in /dist')
.action(async cmd => { .action(async cmd => {
await execTask(ciBuildPluginTask)({ await execTask(ciBuildPluginTask)({
platform: cmd.platform, backend: cmd.backend,
}); });
}); });
program program
.command('plugin:ci-bundle') .command('plugin:ci-docs')
.description('Create a zip artifact for the plugin') .description('Build the HTML docs')
.action(async cmd => { .action(async cmd => {
await execTask(ciBundlePluginTask)({}); await execTask(ciBuildPluginDocsTask)({});
}); });
program program
.command('plugin:ci-setup') .command('plugin:ci-bundle')
.option('--installer <installer>', 'Name of installer to download and run') .description('Create a zip artifact for the plugin')
.description('Install and configure grafana')
.action(async cmd => { .action(async cmd => {
await execTask(ciSetupPluginTask)({ await execTask(ciBundlePluginTask)({});
installer: cmd.installer,
});
}); });
program program
.command('plugin:ci-test') .command('plugin:ci-test')
.option('--full', 'run all the tests (even stuff that will break)')
.description('end-to-end test using bundle in /artifacts') .description('end-to-end test using bundle in /artifacts')
.action(async cmd => { .action(async cmd => {
await execTask(ciTestPluginTask)({ await execTask(ciTestPluginTask)({
platform: cmd.platform, full: cmd.full,
});
}); });
program
.command('plugin:ci-report')
.description('Build a report for this whole process')
.action(async cmd => {
await execTask(ciPluginReportTask)({});
}); });
program program
......
{ {
"name": "@grafana/ui", "name": "@grafana/ui",
"version": "6.4.0-alpha.2", "version": "6.4.0-alpha.12",
"description": "Grafana Components Library", "description": "Grafana Components Library",
"keywords": [ "keywords": [
"grafana", "grafana",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment