-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-tests
executable file
·59 lines (37 loc) · 1.12 KB
/
run-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
print_ruler() {
printf "\n"
printf "=%.0s" {1..79}
printf "\n"
printf "\n"
} # print_ruler()
main() {
printf "Running automated test file(s):\n\n"
print_ruler
# curl -sSL https://get.haskellstack.org/ | sh -s - -f
# stack install hlint
echo Running: hlint src --report
time hlint src --report
print_ruler
# stack install weeder-2.4.1
# echo Running: stack weeder
# time stack weeder
# print_ruler
# stack install brittany # --resolver lts-16.31
echo Running: brittany --verbose --write-mode=inplace ./{src,test}/*hs
time brittany --verbose --write-mode=inplace ./{src,test}/*hs
print_ruler
# stack install stan
# echo Running: stan --hiedir ./.stack-work/dist/x86_64-linux-tinfo6/Cabal-*/build
# time stan --hiedir ./.stack-work/dist/x86_64-linux-tinfo6/Cabal-*/build
# print_ruler
echo Running: stack test --coverage
time stack test --coverage
print_ruler
# go install github.com/client9/misspell/cmd/misspell@latest
# still looking for a working version for haskell
echo Running: misspell .
time misspell .
print_ruler
} # main()
time main "$@" |& tee ./run-tests-haskell.txt