-
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.
fix(documentation): improve documentation
- Loading branch information
Dimitri Kopriwa
committed
Apr 1, 2019
1 parent
73b2942
commit 5bc027e
Showing
5 changed files
with
57 additions
and
3 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,8 @@ | ||
You can deploy test result to public sonarcloud. | ||
|
||
| Environment variable | Description | | ||
|----------------------|---------------------------------------------| | ||
| `SONAR_TOKEN` | token to be used | | ||
| `LCOV_INFO_PATH` | the `lcov.info` path (`coverage/lcov.info`) | | ||
|
||
This is auto configured for you if you use rollup-umd. |
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,31 @@ | ||
$PACKAGE_NAME contain the job test stage for all rollup-umd project. | ||
|
||
You can run the build stage by doing: | ||
|
||
```bash | ||
npx $PACKAGE_NAME | ||
``` | ||
|
||
It should be installed as a `devDependencies` so we can follow the version used by the rollup-umd project. | ||
|
||
To use it, just use the script within your `.travis.yml`: | ||
|
||
|
||
```yml | ||
# Job: Test | ||
- stage: test | ||
node_js: | ||
- 'lts/*' | ||
- '10' | ||
- '8' | ||
addons: | ||
sonarcloud: | ||
organization: $(echo $TRAVIS_REPO_SLUG | awk -F '/' '{print $1}') | ||
script: | ||
- npx $PACKAGE_NAME | ||
``` | ||
Note: | ||
`organization` is necessary to use the travis sonarcloud driver. | ||
Using `$(echo $TRAVIS_REPO_SLUG | awk -F '/' '{print $1}')` we set it to the github namespace of the project. |
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 |
---|---|---|
|
@@ -331,4 +331,4 @@ | |
}, | ||
"declinationId": "cli", | ||
"contributors": [] | ||
} | ||
} |
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
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