Skip to content

Commit

Permalink
get-deps: support installing docs dependencies on debian
Browse files Browse the repository at this point in the history
The python3-pip and mkdocs packages are required to run the
ci/build-docs.sh script.
  • Loading branch information
simpkins authored and wez committed Nov 20, 2023
1 parent 7b4d165 commit fde9267
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions get-deps
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
#!/bin/sh

case $1 in
--testing)
TESTING=0
;;
'')
TESTING=1
;;
*)
echo 'get-deps:'
echo ' --testing include dependencies required for tests'
exit 1
;;
esac
TESTING=0
DOCS=0
for arg in "$@"; do
case $arg in
--testing)
TESTING=1
;;
--docs)
DOCS=1
;;
*)
echo 'get-deps:'
echo ' --docs include dependencies required for testing docs'
echo ' --testing include dependencies required for tests'
exit 1
;;
esac
done

NOTFOUND=0

Expand All @@ -21,7 +26,11 @@ test_cmd() {
}

test_flag() {
test $TESTING -eq 0
test $TESTING -eq 1
}

docs_flag() {
test $DOCS -eq 1
}

if test -z "$SUDO"; then
Expand Down Expand Up @@ -164,6 +173,9 @@ debian_deps() {
if test_flag; then
$APT install -y 'openssh-server'
fi
if docs_flag; then
$APT install -y 'python3-pip mkdocs'
fi
}

arch_deps() {
Expand Down

0 comments on commit fde9267

Please sign in to comment.