Newer
Older
dub_jkp / test / ddox.sh
@Martin Nowak Martin Nowak on 3 Jul 2017 460 bytes unify flags and error handling
#!/usr/bin/env bash

. $(dirname "${BASH_SOURCE[0]}")/common.sh

(cd $CURR_DIR/ddox/default && $DUB build -b ddox)
grep -qF ddox_project $CURR_DIR/ddox/default/docs/index.html

$DUB add-local $CURR_DIR/ddox/custom-tool
(cd $CURR_DIR/ddox/custom && $DUB build -b ddox)
grep -qF custom-tool $CURR_DIR/ddox/custom/docs/custom_tool_output
diff $CURR_DIR/ddox/custom-tool/public/copied $CURR_DIR/ddox/custom/docs/copied
$DUB remove-local $CURR_DIR/ddox/custom-tool