This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generates the source file from the grafana toolkit instead of creatin…
…g them by hand which led to conflicts across the board
- Loading branch information
David Giger
committed
May 12, 2020
1 parent
f151334
commit 6977c1a
Showing
23 changed files
with
12,844 additions
and
5,568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
version: 2 | ||
jobs: | ||
build_plugin: | ||
docker: | ||
- image: circleci/node:12 | ||
working_directory: ~/plugin | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install yarn | ||
command: yarn install --pure-lockfile | ||
- run: | ||
name: Run Toolkit Build | ||
command: | | ||
npx grafana-toolkit plugin:ci-build | ||
npx grafana-toolkit plugin:ci-build --finish | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: yarn-packages-{{ checksum "yarn.lock" }} | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ci | ||
package: | ||
docker: | ||
- image: circleci/node:12 | ||
working_directory: ~/plugin | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Package Distribution | ||
command: npx grafana-toolkit plugin:ci-package | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ci/jobs/package | ||
- ci/packages | ||
- ci/dist | ||
- ci/grafana-test-env | ||
test_6_2_5: | ||
docker: | ||
- image: circleci/node:12-browsers | ||
working_directory: ~/plugin | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Setup Grafana (local install) | ||
command: | | ||
wget https://dl.grafana.com/oss/release/grafana_6.2.5_amd64.deb | ||
sudo apt-get install -y adduser libfontconfig1 | ||
sudo dpkg -i grafana_6.2.5_amd64.deb | ||
sudo apt-get install locate | ||
sudo updatedb | ||
sudo locate grafana | ||
sudo cat /etc/grafana/grafana.ini | ||
sudo echo ------------------------ | ||
sudo cp ci/grafana-test-env/custom.ini /usr/share/grafana/conf/custom.ini | ||
sudo cp ci/grafana-test-env/custom.ini /etc/grafana/grafana.ini | ||
sudo service grafana-server start | ||
sudo grafana-cli --version | ||
- run: | ||
name: Run e2e tests | ||
command: | | ||
npx grafana-toolkit plugin:ci-test | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ci/jobs/test_6_2_5 | ||
- store_test_results: | ||
path: ci/jobs/test_6_2_5 | ||
- store_artifacts: | ||
path: ci/jobs/test_6_2_5 | ||
test_6_3_0_beta1: | ||
docker: | ||
- image: circleci/node:12-browsers | ||
working_directory: ~/plugin | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Setup Grafana (local install) | ||
command: | | ||
wget https://dl.grafana.com/oss/release/grafana_6.3.0-beta1_amd64.deb | ||
sudo apt-get install -y adduser libfontconfig1 | ||
sudo dpkg -i grafana_6.3.0-beta1_amd64.deb | ||
sudo apt-get install locate | ||
sudo updatedb | ||
sudo locate grafana | ||
sudo cat /etc/grafana/grafana.ini | ||
sudo echo ------------------------ | ||
sudo cp ci/grafana-test-env/custom.ini /usr/share/grafana/conf/custom.ini | ||
sudo cp ci/grafana-test-env/custom.ini /etc/grafana/grafana.ini | ||
sudo service grafana-server start | ||
sudo grafana-cli --version | ||
- run: | ||
name: Run e2e tests | ||
command: | | ||
npx grafana-toolkit plugin:ci-test | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ci/jobs/test_6_3_0_beta1 | ||
- store_test_results: | ||
path: ci/jobs/test_6_3_0_beta1 | ||
- store_artifacts: | ||
path: ci/jobs/test_6_3_0_beta1 | ||
report: | ||
docker: | ||
- image: circleci/node:12 | ||
working_directory: ~/plugin | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
keys: | ||
- yarn-packages-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Toolkit Report | ||
command: npx grafana-toolkit plugin:ci-report | ||
- store_artifacts: | ||
path: ci | ||
workflows: | ||
version: 2 | ||
plugin_workflow: | ||
jobs: | ||
- build_plugin | ||
- package: | ||
requires: | ||
- build_plugin | ||
- test_6_2_5: | ||
requires: | ||
- package | ||
- test_6_3_0_beta1: | ||
requires: | ||
- package | ||
- report: | ||
requires: | ||
- test_6_2_5 | ||
- test_6_3_0_beta1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
|
||
[*.{js,ts,tsx,scss}] | ||
quote_type = single | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
.idea/ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
node_modules/ | ||
dist/ | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
dist/ | ||
artifacts/ | ||
work/ | ||
ci/ | ||
e2e-results/ | ||
|
||
# Editor | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
...require("./node_modules/@grafana/toolkit/src/config/prettier.plugin.config.json"), | ||
}; |
Oops, something went wrong.