Skip to content

Commit ffbbe0a

Browse files
chore(CI): Improve integration testing when custom skeleton was used
Signed-off-by: Joas Schilling <[email protected]>
1 parent 2ebd9c4 commit ffbbe0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/integration/run.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export TEST_REMOTE_URL="http://localhost:8180/"
4545
OVERWRITE_CLI_URL=$(${ROOT_DIR}/occ config:system:get overwrite.cli.url)
4646
${ROOT_DIR}/occ config:system:set overwrite.cli.url --value "http://localhost:8080/"
4747

48+
SKELETON_DIR=$(${ROOT_DIR}/occ config:system:get skeletondirectory)
49+
if [[ "$SKELETON_DIR" ]]; then
50+
echo "Resetting custom skeletondirectory so that tests pass"
51+
${ROOT_DIR}/occ config:system:delete skeletondirectory
52+
fi
53+
4854
echo ''
4955
echo '#'
5056
echo '# Setting up apps'
@@ -96,6 +102,9 @@ kill $PHPPID2
96102

97103
${ROOT_DIR}/occ app:disable spreedcheats
98104
${ROOT_DIR}/occ config:system:set overwrite.cli.url --value $OVERWRITE_CLI_URL
105+
if [[ "$SKELETON_DIR" ]]; then
106+
${ROOT_DIR}/occ config:system:set skeletondirectory --value "$SKELETON_DIR"
107+
fi
99108
rm -rf ../../../spreedcheats
100109

101110
wait $PHPPID1

0 commit comments

Comments
 (0)