forked from haskell/time
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfullcheck.ps1
More file actions
31 lines (31 loc) · 814 Bytes
/
fullcheck.ps1
File metadata and controls
31 lines (31 loc) · 814 Bytes
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
$ErrorActionPreference = "Stop"
& "git" "clean" "-dXf"
if (!$?) {Exit 1}
& "git" "pull"
if (!$?) {Exit 1}
& "stack" "exec" "--" "env" "autoreconf" "-i"
if (!$?) {Exit 1}
& "ghcup" "upgrade"
if (!$?) {Exit 1}
& "ghcup" "install" "cabal" "latest"
if (!$?) {Exit 1}
& "ghcup" "set" "cabal" "latest"
if (!$?) {Exit 1}
ForEach ($c in "8.10.7","9.0.2","9.2.2")
{
& "ghcup" "install" "ghc" "$c"
if (!$?) {Exit 1}
& "ghcup" "set" "ghc" "$c"
if (!$?) {Exit 1}
& "cabal" "update"
if (!$?) {Exit 1}
& "cabal" "v1-install" "--only-dependencies" "--enable-tests"
if (!$?) {Exit 1}
& "cabal" "v1-configure" "--enable-tests"
if (!$?) {Exit 1}
& "cabal" "v1-test"
if (!$?) {Exit 1}
& "cabal" "v1-haddock"
if (!$?) {Exit 1}
}
Write-Output "OK"