File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ $ sudo dnf install -y ghc cabal-install && cabal update
36
36
Run the tests:
37
37
38
38
``` ShellSession
39
- $ cabal build all && cabal test all
39
+ $ ./bin/run-tests
40
40
```
41
41
42
42
Some tests requires a local matrix server, run integration service:
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+
3
+ log () {
4
+ /bin/echo -e " \n\x1b[1;33m[+] $* \x1b[0m" ;
5
+ }
6
+
7
+ log " Building"
8
+ cabal build -O0 --ghc-option=-Werror
9
+
10
+ log " Testing"
11
+ cabal test -O0 --test-show-details=direct
12
+ cabal check
13
+
14
+ log " Doctests"
15
+ cabal repl --with-compiler=doctest --repl-options=' -w -Wdefault -XOverloadedStrings'
16
+
17
+ log " Formatting"
18
+ fourmolu -i src/ test/
19
+ cabal-gild --io matrix-client.cabal
20
+ nixfmt flake.nix
21
+
22
+ log " Linting"
23
+ hlint src/ test/
24
+
25
+ log " Check for diff"
26
+ if [ ! -z " $( git status --porcelain) " ]; then
27
+ git status
28
+ exit 1
29
+ fi
You can’t perform that action at this time.
0 commit comments