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
  1. #!/usr/bin/env bash
  2.  
  3. . $(dirname "${BASH_SOURCE[0]}")/common.sh
  4.  
  5. # gdc 4.8.5 not working with ddox due to missing
  6. # std.experimental.allocator.mallocator for libdparse
  7. if [ ${DC} = gdc ]; then
  8. exit 0
  9. fi
  10.  
  11. (cd $CURR_DIR/ddox/default && $DUB build -b ddox)
  12. grep -qF ddox_project $CURR_DIR/ddox/default/docs/index.html
  13.  
  14. $DUB add-local $CURR_DIR/ddox/custom-tool
  15. (cd $CURR_DIR/ddox/custom && $DUB build -b ddox)
  16. grep -qF custom-tool $CURR_DIR/ddox/custom/docs/custom_tool_output
  17. diff $CURR_DIR/ddox/custom-tool/public/copied $CURR_DIR/ddox/custom/docs/copied
  18. $DUB remove-local $CURR_DIR/ddox/custom-tool