remove LHCI_REPO_NAME
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-07-16 10:09:13 +02:00
parent e3776c284a
commit 3578414c30
No known key found for this signature in database
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: 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

View File

@ -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"