summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..7669a86
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# setup
+cabal update
+
+# doc
+cabal haddock --enable-documentation --with-compiler=/srv/httpd/server/ghcup/9.2/bin/ghc
+
+# lint
+cabal install hlint --with-compiler=/srv/httpd/server/ghcup/9.2/bin/ghc --overwrite-policy=always "--constraint=hlint ==3.5"
+cabal exec hlint -- src tests
+
+# test
+cabal build graphql-test --with-compiler=/srv/httpd/server/ghcup/9.2/bin/ghc
+cabal test --test-show-details=direct --with-compiler=/srv/httpd/server/ghcup/9.2/bin/ghc