From 614973c5285499ba4d9a49a9c97a7316039cda68 Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Tue, 14 Mar 2023 10:37:22 +0000 Subject: [PATCH] Add mdbook test [CI SKIP] --- test/test_image.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_image.sh b/test/test_image.sh index 27c3005..8d8ffd2 100755 --- a/test/test_image.sh +++ b/test/test_image.sh @@ -33,6 +33,7 @@ run_image() { -e DRONE_BRANCH=$branch \ -e DRONE_COMMIT=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d \ --entrypoint '/bin/bash' \ + --workdir /drone/src \ --rm codefirst-docdeployer \ -c "sed -i 's/ssh/ssh -p 2222/g' /entrypoint.sh && sed -i 's/root@nginx/codefirst@nginx/g' /entrypoint.sh && $*" docker stop "$nginx_id" @@ -94,5 +95,16 @@ test_swagger() { cleanup } +test_mdbook() { + run_image master 'mkdir -p doc/src \ + && touch doc/book.toml \ + && touch doc/src/index.md \ + && echo "[Introduction](index.md)" > doc/src/SUMMARY.md \ + && /entrypoint.sh -l doc -t mdbook' + assert_file_exists book/index.html + cleanup +} + test_doxygen test_swagger +test_mdbook