910a3ae7ec
This allows us to deprecate GHCJS 8.4 (which makes sense, as vanilla GHC < 8.6 is already deprecated). We re-use GHCJS from reflex-platform, which unfortunately isn't up-to-date with latest GHC and is only 8.6. The benefit of using reflex-platform is that it provides nix expressions for GHCJS + a binary nix cache. reflex-platform patches text to use a JS-String based internal representation for performance reasons, so we provide a few haskell dependencies from reflex-platform as well: - hashable - attoparsec As those rely on text's internal representation but have been patched for reflex-platform.
14 lines
460 B
Bash
Executable file
14 lines
460 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# cabal v2-test does not work with GHCJS
|
|
# See: https://github.com/haskell/cabal/issues/6175
|
|
#
|
|
# This invokes cabal-plan to figure out test binaries, and invokes them with node.
|
|
|
|
cabal-plan list-bins '*:test:*' | while read -r line
|
|
do
|
|
testpkg=$(echo "$line" | perl -pe 's/:.*//')
|
|
testexe=$(echo "$line" | awk '{ print $2 }')
|
|
echo "testing $textexe in package $textpkg"
|
|
(cd "$testpkg" && node "$testexe".jsexe/all.js)
|
|
done
|