5
5
vmImage : windows-2019
6
6
strategy :
7
7
matrix :
8
- # It still is not in chocolatey
8
+ # ghc versions 8.8.1 and 8.8.2 are not usable in windows
9
+ # due to https://gitlab.haskell.org/ghc/ghc/issues/17575
9
10
# ghc-8.8.2:
10
11
# GHC_VERSION: "8.8.2"
11
12
ghc-8.6.5 :
@@ -51,28 +52,28 @@ jobs:
51
52
displayName: Install cabal
52
53
- bash : |
53
54
source .azure/windows-cabal.bashrc
54
- cabal v2-update
55
+ cabal v2-update --project-file $PROJECT_FILE
55
56
echo "store-dir: $CABAL_STORE_DIR" >> $CABAL_ROOT/config
56
57
echo "overwrite-policy: always" >> $CABAL_ROOT/config
57
58
displayName: Update cabal
58
59
- bash : |
59
60
source .azure/windows-cabal.bashrc
60
- cabal v2-build all --disable-tests --disable-benchmarks --only-dependencies
61
+ cabal v2-build all --disable-tests --disable-benchmarks --only-dependencies --project-file $PROJECT_FILE
61
62
displayName: Build dependencies
62
63
- bash : |
63
64
source .azure/windows-cabal.bashrc
64
- cabal v2-build all --disable-tests --disable-benchmarks
65
+ cabal v2-build all --disable-tests --disable-benchmarks --project-file $PROJECT_FILE
65
66
displayName: Build `hie`
66
67
- bash : |
67
68
source .azure/windows-cabal.bashrc
68
69
# `hie` binary required locally for tests
69
70
# we have to use a separate store for install and builds
70
71
# to workaround https://github.com/haskell/cabal/issues/6483
71
- cabal --store-dir ${CABAL_STORE_DIR}i v2-install
72
+ cabal --store-dir ${CABAL_STORE_DIR}i v2-install --project-file $PROJECT_FILE
72
73
displayName: Install `hie`
73
74
- bash : |
74
75
source .azure/windows-cabal.bashrc
75
- cabal v2-build all --enable-tests --enable-benchmarks --only-dependencies
76
+ cabal v2-build all --enable-tests --enable-benchmarks --only-dependencies --project-file $PROJECT_FILE
76
77
displayName: Build Test-dependencies
77
78
- bash : |
78
79
mkdir -p /usr/local
@@ -88,31 +89,31 @@ jobs:
88
89
displayName: "Install Runtime Test-Dependencies: liquidhaskell"
89
90
- bash : |
90
91
source .azure/windows-cabal.bashrc
91
- cabal v2-build hoogle
92
- cabal v2-exec hoogle generate
92
+ cabal v2-build hoogle --project-file $PROJECT_FILE
93
+ cabal v2-exec hoogle generate --project-file $PROJECT_FILE
93
94
displayName: "Install Runtime Test-Dependencies: hoogle database"
94
95
- bash : |
95
96
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
96
97
unzip -o /usr/bin/stack.zip -d /usr/bin/
97
98
mkdir -p "$STACK_ROOT"
98
- # If we don't install the ghc used in test projects in advance, tests fail
99
+ # If we don't install the ghc used in test projects in advance, tests fail
99
100
stack setup --stack-yaml stack-${GHC_VERSION}.yaml
100
101
displayName: "Install Runtime Unit Test-Dependencies: stack"
101
102
- bash : |
102
103
source .azure/windows-cabal.bashrc
103
- cabal v2-test :unit-test
104
+ cabal v2-test :unit-test --project-file $PROJECT_FILE
104
105
displayName: "Run Test: unit-test"
105
106
- bash : |
106
107
source .azure/windows-cabal.bashrc
107
108
# Needed for wrapper-test
108
109
stack setup --stack-yaml stack-8.8.1.yaml
109
110
stack setup --stack-yaml stack-8.6.5.yaml
110
111
# TODO Enable :dispatcher-test suite
111
- cabal v2-test :plugin-dispatcher-test :wrapper-test # :dispatcher-test
112
+ cabal v2-test :plugin-dispatcher-test :wrapper-test # :dispatcher-test --project-file $PROJECT_FILE
112
113
displayName: "Run Test: dispatcher-test, plugin-dispatcher-test and wrapper-test"
113
114
- bash : |
114
115
source .azure/windows-cabal.bashrc
115
- cabal v2-test :func-test
116
+ cabal v2-test :func-test --project-file $PROJECT_FILE
116
117
displayName: "Run Test: func-test"
117
118
- bash : |
118
119
source .azure/windows-cabal.bashrc
0 commit comments