Skip to content

Commit 32b7f7a

Browse files
committed
TEMP: introduce encfs-repo flavor into matrix
TODO: move into template after it works
1 parent 7f96882 commit 32b7f7a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build-ubuntu.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ jobs:
244244
needs: build-package
245245
strategy:
246246
matrix:
247-
flavor: ["normal", "crippled-tmp", "crippled-home", "nfs-home", "custom-config1"]
247+
flavor: ["normal", "crippled-tmp", "crippled-home", "nfs-home", "custom-config1", "encfs-repo"]
248248
os: [ubuntu-latest]
249249
fail-fast: false
250250
steps:
@@ -297,6 +297,11 @@ jobs:
297297
sudo exportfs -a
298298
sudo mount -t nfs localhost:/tmp/nfsmount_ /tmp/nfsmount
299299
fi
300+
if echo "${{ matrix.flavor }}" | grep -q "encfs" ; then
301+
mkdir /tmp/encfsmount_ /tmp/encfsmount
302+
sudo apt-get install -y encfs
303+
encfs --standard --extpass="echo 123" /tmp/encfsmount_ /tmp/encfsmount
304+
fi
300305
301306
case "${{ matrix.flavor }}" in
302307
# For git-annex it causes only few temporary directories to be on the crippled FS,
@@ -316,7 +321,7 @@ jobs:
316321
nfs-home)
317322
export HOME=/tmp/nfsmount
318323
;;
319-
normal|custom-config1)
324+
normal|custom-config1|encfs-repo)
320325
;;
321326
*)
322327
echo "Unknown flavor ${{ matrix.flavor }}"
@@ -339,7 +344,13 @@ jobs:
339344
;;
340345
esac
341346
342-
cd $HOME
347+
case "${{ matrix.flavor }}" in
348+
# Perform testing only (leaving TMP or HOME) aside in --repo flavors
349+
# and generally under $HOME
350+
encfs-repo) cd /tmp/encfsmount;;
351+
*) cd $HOME;;
352+
esac
353+
343354
export | grep -e crippledfs || :
344355
345356
timeout 3600 git annex test "${test_opts[@]:-}"

0 commit comments

Comments
 (0)