forked from hedgehogqa/haskell-hedgehog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
48 lines (40 loc) · 1.25 KB
/
.appveyor.yml
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
version: "{build}"
clone_folder: "C:\\WORK"
environment:
global:
CABAL: "cabal --store-dir=C:\\SR --http-transport=plain-http"
HC: "ghc"
TEST: "--enable-tests"
NOTEST: "--disable-tests"
BENCH: "--enable-benchmarks"
NOBENCH: "--disable-benchmarks"
matrix:
# We don't get many build bots with Appveyor so we only include the
# latest for each major version.
- GHC_VERSION: "8.2.2"
- GHC_VERSION: "8.4.4"
- GHC_VERSION: "8.6.5"
- GHC_VERSION: "8.8.3"
- GHC_VERSION: "8.10.1"
cache:
- "C:\\SR"
install:
- "choco install -y ghc --version %GHC_VERSION%"
- "refreshenv"
- "%CABAL% --version"
- "%HC% --version"
- "%CABAL% v2-update"
- "%CABAL% v2-build -w %HC% %TEST% %BENCH% --dep -j2 all"
- "%CABAL% v2-build -w %HC% %NOTEST% %NOBENCH% --dep -j2 all"
build: off
# test_script mostly transcribed from .travis.yml
test_script:
# show project file
- "cat cabal.project || true"
# this builds all libraries and executables (without tests/benchmarks)
- "%CABAL% v2-build --disable-tests --disable-benchmarks all"
# build & run tests, build benchmarks
- "%CABAL% v2-build -w %HC% %TEST% %BENCH% all"
- "%CABAL% v2-test -w %HC% %TEST% %BENCH% all"
# haddock
- "%CABAL% v2-haddock -w %HC% %TEST% %BENCH% all"