remove LHCI_REPO_NAME
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-07-16 10:09:13 +02:00
parent e3776c284a
commit 3578414c30
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1,2 @@
- initial release
- ENHANCEMENT
- remove `LHCI_REPO_NAME`, could be handled within the CI

View File

@ -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:
- 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`
- 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:
```Shell
lhci_reports/dist/$REPO_NAME/
lhci_reports/dist/
├── 9cf658e2-202007160745.html
├── f33fa4c4-202007160745.html
└── ffae8d3e-202007160745.html
@ -74,7 +74,6 @@ docker run -v $(pwd)/public:/drone/src lhci autorun --upload.target=temporary-pu
```Shell
LHCI_BASE_DIR="/drone/src"
LHCI_SERVER_URL="https://example.com/"
LHCI_REPO_NAME=$DRONE_REO_NAME
```
## Build

View File

@ -12,7 +12,7 @@ if [ -f "$CONFIG" ]; then
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ] ; then
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}"
printf "\nPost-process report files...\n"