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 @@
"npmClient": "yarn",
"useWorkspaces": true,
"packages": ["packages/*"],
"version": "6.4.0-alpha.6"
"version": "6.4.0-alpha.12"
}
{
"name": "@grafana/data",
"version": "6.4.0-alpha.2",
"version": "6.4.0-alpha.12",
"description": "Grafana Data Library",
"keywords": [
"typescript"
......
{
"name": "@grafana/runtime",
"version": "6.4.0-alpha.2",
"version": "6.4.0-alpha.12",
"description": "Grafana Runtime Library",
"keywords": [
"grafana"
......
{
"name": "@grafana/toolkit",
"version": "6.4.0-alpha.6",
"version": "6.4.0-alpha.12",
"description": "Grafana Toolkit",
"keywords": [
"grafana",
......
......@@ -15,10 +15,11 @@ import { closeMilestoneTask } from './tasks/closeMilestone';
import { pluginDevTask } from './tasks/plugin.dev';
import {
ciBuildPluginTask,
ciBuildPluginDocsTask,
ciBundlePluginTask,
ciTestPluginTask,
ciPluginReportTask,
ciDeployPluginTask,
ciSetupPluginTask,
} from './tasks/plugin.ci';
import { buildPackageTask } from './tasks/package.build';
......@@ -148,40 +149,46 @@ export const run = (includeInternalScripts = false) => {
program
.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')
.action(async cmd => {
await execTask(ciBuildPluginTask)({
platform: cmd.platform,
backend: cmd.backend,
});
});
program
.command('plugin:ci-bundle')
.description('Create a zip artifact for the plugin')
.command('plugin:ci-docs')
.description('Build the HTML docs')
.action(async cmd => {
await execTask(ciBundlePluginTask)({});
await execTask(ciBuildPluginDocsTask)({});
});
program
.command('plugin:ci-setup')
.option('--installer <installer>', 'Name of installer to download and run')
.description('Install and configure grafana')
.command('plugin:ci-bundle')
.description('Create a zip artifact for the plugin')
.action(async cmd => {
await execTask(ciSetupPluginTask)({
installer: cmd.installer,
});
await execTask(ciBundlePluginTask)({});
});
program
.command('plugin:ci-test')
.option('--full', 'run all the tests (even stuff that will break)')
.description('end-to-end test using bundle in /artifacts')
.action(async cmd => {
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
.command('plugin:ci-deploy')
.description('Publish plugin CI results')
.action(async cmd => {
......
{
"name": "@grafana/ui",
"version": "6.4.0-alpha.2",
"version": "6.4.0-alpha.12",
"description": "Grafana Components Library",
"keywords": [
"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