Julian Ospald
f5c541b9cc
This fixes various problems with doctest: * https://github.com/sol/doctest/issues/245 * https://github.com/composewell/streamly/issues/83 Also clean up travis.yml for cabal-3.
23 lines
425 B
Bash
Executable File
23 lines
425 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -n "${SKIP_DOCTESTS}" ] ; then
|
|
echo "Skipping doctests"
|
|
exit 0
|
|
fi
|
|
|
|
if ! command -v doctest >/dev/null ; then
|
|
tempdir="$(mktemp -d)"
|
|
(
|
|
cd "${tempdir}"
|
|
cabal install --installdir="${tempdir}" doctest
|
|
)
|
|
export PATH="${tempdir}:$PATH"
|
|
fi
|
|
|
|
set -x
|
|
|
|
cabal exec doctest -- -isrc -XOverloadedStrings System.Posix.FilePath
|
|
cabal exec doctest -- -isrc -XOverloadedStrings HPath
|