Newer
Older
dub_jkp / test / ddox.sh
@Martin Nowak Martin Nowak on 4 Aug 2017 603 bytes run dub with other compilers for test coverage
#!/usr/bin/env bash

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

# gdc 4.8.5 not working with ddox due to missing
# std.experimental.allocator.mallocator for libdparse
if [ ${DC} = gdc ]; then
    exit 0
fi

(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