updated CI and customised checks (#165)
- updated CI config to remove useless DIND -> now directly using the target image with the correct soft installed as it was otherwise not possible to run the jobs locally with Circle CI CLI. - Updated and customised Vale config rules - Updated en customised markdownlint config and rules - moved config files to CI folder - added scripts to run CI jobs locally with Circle CI CLI. Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>pull/193/head
parent
69b3873156
commit
6d43a2ca8e
@ -0,0 +1,8 @@ |
||||
all |
||||
|
||||
rule "no-duplicate-header", :allow_different_nesting => true |
||||
rule 'line-length', :line_length=>100, :code_blocks=>false, :tables=> false |
||||
rule 'no-trailing-punctuation', :punctuation=>'.,;:!' |
||||
|
||||
exclude_rule 'no-bare-urls' |
||||
exclude_rule 'code-block-style' |
@ -0,0 +1,33 @@ |
||||
# Doc quality testing scripts |
||||
|
||||
Scripts in this directory can be used to run CircleCI jobs on your local machine before pushing your |
||||
work to the Github repos. |
||||
|
||||
## Requirements |
||||
|
||||
* Install the [Circle CI local CLI](https://circleci.com/docs/2.0/local-cli/). |
||||
* Install [Docker](https://docs.docker.com/install/) |
||||
|
||||
## Running the scripts |
||||
|
||||
Go to the besu-doc project root directory and run one of the following scripts: |
||||
|
||||
* `CI/scripts/test_build.sh` will run the doc build with MkDocs |
||||
* `CI/scripts/test_guidelines.sh` will test the doc with Vale and our custom rules. |
||||
* `CI/scripts/test_links.sh` will test links in the doc. Internal and external links are checked. If a link is incorrect or the targeted web page is unavailable (for external sites), the test will fail and display the faulty link. |
||||
* `CI/scripts/test_lint.sh` will test the Markdown syntax for issues. Sometimes they are not visible but making sure the markdown is correct helps to make it readable and bug free. |
||||
* `CI/scripts/test_all.sh` will test run all the test in one pass. |
||||
|
||||
# Known issues |
||||
|
||||
You will notice messages like: |
||||
|
||||
``` |
||||
====>> Saving Cache |
||||
Error: |
||||
Skipping cache - error checking storage: not supported |
||||
|
||||
Step failed |
||||
``` |
||||
|
||||
This is normal, Circle CI doesn't support some of the features the server version does. Ignore them. |
@ -0,0 +1,5 @@ |
||||
#!/usr/bin/env bash |
||||
CI/scripts/test_build.sh |
||||
CI/scripts/test_guidelines.sh |
||||
CI/scripts/test_links.sh |
||||
CI/scripts/test_lint.sh |
@ -0,0 +1,2 @@ |
||||
#!/usr/bin/env bash |
||||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job build |
@ -0,0 +1,2 @@ |
||||
#!/usr/bin/env bash |
||||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job vale |
@ -0,0 +1,2 @@ |
||||
#!/usr/bin/env bash |
||||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job linkchecker |
@ -0,0 +1,2 @@ |
||||
#!/usr/bin/env bash |
||||
circleci config process .circleci/config.yml > .circleci/process.yml && circleci local execute -c .circleci/process.yml --job markdownlint |
Loading…
Reference in new issue