Skip to content

Commit

Permalink
Merge pull request #22 from bboozzoo/bboozzoo/improve-repo-layout
Browse files Browse the repository at this point in the history
spread, github: tweak tests description, generate directory index
  • Loading branch information
bboozzoo authored Apr 18, 2024
2 parents 9be167c + 72387c1 commit e17158c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ jobs:
mkdir -p repo/amzn2 repo/al2023
tar -C repo/amzn2 --strip-components=1 -xvf repo-tarball-amazonlinux-2/amazon-linux-2-repo.tar.xz
tar -C repo/al2023 --strip-components=1 -xvf repo-tarball-amazonlinux-2023/amazon-linux-2023-repo.tar.xz
# generate index.html in each directory so that we can browse the paths
(
cd repo/
LC_ALL=C find . -type d -print -exec sh -c 'tree "$0" \
-H "." \
-L 1 \
--noreport \
--houtro "" \
--dirsfirst \
--charset utf-8 \
-I "index.html" \
--ignore-case \
--timefmt "%d-%b-%Y %H:%M" \
-s \
-D \
-o "$0/index.html"' {} \;
)
find repo/ -ls
- name: Upload artifact
Expand Down
11 changes: 9 additions & 2 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ restore-each: |
suites:
spread/prebuilt/:
summary: run tests with prebuilt packages
summary: Run tests with prebuilt repo tarball
details: |
Run spread tests with prebuilt repository tarball, typically obtained by
downloading build artifacts form a PR, or when built locally with `tool
createrepo`.
prepare: |
# set up a place to unpack the repo
mkdir -p "$SPREAD_PATH/repo-unpacked"
Expand Down Expand Up @@ -86,7 +90,10 @@ suites:
rm -rfv "$SPREAD_PATH/repo-unpacked"
spread/prebuilt-repo/:
summary: run tests with prebuilt packages in the repository
summary: Run tests with repository packages
details: |
Run tests with repository packages hosted at ${BASE_REPO_URL} (typically
github pages of the repository}.
prepare: |
# set up a place to unpack the repo
case "$SPREAD_SYSTEM" in
Expand Down

0 comments on commit e17158c

Please sign in to comment.