This commit is contained in:
parent
e3776c284a
commit
3578414c30
@ -1 +1,2 @@
|
|||||||
- initial release
|
- ENHANCEMENT
|
||||||
|
- remove `LHCI_REPO_NAME`, could be handled within the CI
|
||||||
|
@ -15,7 +15,7 @@ There are two wrapper scripts around the lhci command you could use:
|
|||||||
|
|
||||||
The wrapper `/usr/bin/lhci` will do the following:
|
The wrapper `/usr/bin/lhci` will do the following:
|
||||||
|
|
||||||
- create `DIST=$LHCI_BASE_DIR/$UPLOAD_OUTPUT_DIR/dist/$LHCI_REPO_NAME`
|
- create `DIST=$LHCI_BASE_DIR/$UPLOAD_OUTPUT_DIR/dist/`
|
||||||
- find all files flagged with `isRepresentativeRun` in the `manifest.json`
|
- find all files flagged with `isRepresentativeRun` in the `manifest.json`
|
||||||
- copy those files to `$DIST`
|
- copy those files to `$DIST`
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ ci:
|
|||||||
What you will get is the following file structure which could be used as an upload source:
|
What you will get is the following file structure which could be used as an upload source:
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
lhci_reports/dist/$REPO_NAME/
|
lhci_reports/dist/
|
||||||
├── 9cf658e2-202007160745.html
|
├── 9cf658e2-202007160745.html
|
||||||
├── f33fa4c4-202007160745.html
|
├── f33fa4c4-202007160745.html
|
||||||
└── ffae8d3e-202007160745.html
|
└── ffae8d3e-202007160745.html
|
||||||
@ -74,7 +74,6 @@ docker run -v $(pwd)/public:/drone/src lhci autorun --upload.target=temporary-pu
|
|||||||
```Shell
|
```Shell
|
||||||
LHCI_BASE_DIR="/drone/src"
|
LHCI_BASE_DIR="/drone/src"
|
||||||
LHCI_SERVER_URL="https://example.com/"
|
LHCI_SERVER_URL="https://example.com/"
|
||||||
LHCI_REPO_NAME=$DRONE_REO_NAME
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
@ -12,7 +12,7 @@ if [ -f "$CONFIG" ]; then
|
|||||||
|
|
||||||
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ] ; then
|
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ] ; then
|
||||||
MANIFEST=${UPLOAD_OUTPUT_DIR%/}/manifest.json
|
MANIFEST=${UPLOAD_OUTPUT_DIR%/}/manifest.json
|
||||||
DIST="${LHCI_BASE_DIR%/}/${UPLOAD_OUTPUT_DIR%/}/dist/${LHCI_REPO_NAME}"
|
DIST="${LHCI_BASE_DIR%/}/${UPLOAD_OUTPUT_DIR%/}/dist"
|
||||||
mkdir -p "${DIST}"
|
mkdir -p "${DIST}"
|
||||||
|
|
||||||
printf "\nPost-process report files...\n"
|
printf "\nPost-process report files...\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user