Skip to content

Commit

Permalink
tests: fix remote-build tests
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <[email protected]>
  • Loading branch information
mr-cal committed Apr 29, 2024
1 parent 07b4ee1 commit 5186118
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spread-scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
fail-fast: false
matrix:
system:
- ubuntu-20.04-64
- ubuntu-22.04-64
- fedora-39-64
steps:
- name: Cleanup job workspace
Expand Down
1 change: 1 addition & 0 deletions tests/spread/core24/remote-build/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ prepare: |
# Commit the project
git config --global --add safe.directory "$PWD"
git init
git add snap/snapcraft.yaml
git commit -m "Initial Commit"
Expand Down
13 changes: 11 additions & 2 deletions tests/spread/general/remote-build/task.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
summary: Test the remote builder
manual: true
kill-timeout: 180m
systems:
- fedora-39-64
- ubuntu-22.04*

environment:
LAUNCHPAD_TOKEN: "$(HOST: echo ${LAUNCHPAD_TOKEN})"
Expand All @@ -17,12 +20,18 @@ prepare: |
# Commit the project
git config --global --add safe.directory "$PWD"
git init
git add snap/snapcraft.yaml
git commit -m "Initial Commit"
# Setup launchpad token
mkdir -p ~/.local/share/snapcraft/provider/launchpad/
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/provider/launchpad/credentials
if [[ $STRATEGY == "disable-fallback" ]]; then
mkdir -p ~/.local/share/snapcraft/
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/launchpad-credentials
else
mkdir -p ~/.local/share/snapcraft/provider/launchpad/
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/provider/launchpad/credentials
fi
restore: |
rm -f ./*.snap ./*.txt
Expand Down

0 comments on commit 5186118

Please sign in to comment.