forked from haskell/network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (57 loc) · 1.52 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "{build}"
clone_folder: "c:\\network"
# Do not build feature branch with open Pull Requests
# prevents PR double builds as branch
skip_branch_with_pr: true
environment:
global:
CABOPTS: "--store-dir=C:\\SR --http-transport=plain-http"
DOCTEST: YES
matrix:
- GHCVER: 7.8.4.1
- GHCVER: 7.10.3.2
- GHCVER: 8.0.2
- GHCVER: 8.2.2
- GHCVER: 8.4.4
- GHCVER: 8.6.3
platform:
# - x86 # We may want to test x86 as well, but it would double the 23min build time.
- x64
for:
-
matrix:
only:
- platform: x86
environment:
global:
CHOCOPTS: --forcex86
-
matrix:
only:
- GHCVER: 7.8.4.1
- GHCVER: 7.10.3.2
environment:
global:
DOCTEST: NO
cache:
- "C:\\SR"
install:
- choco install -y cabal %CHOCOPTS%
- choco install -y ghc --version %GHCVER% %CHOCOPTS%
- refreshenv
- set PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;C:\\ghc\\ghc-%GHCVER%\\bin;%PATH%
before_build:
- cabal --version
- ghc --version
- cabal %CABOPTS% new-update -vverbose+nowrap
- IF EXIST configure.ac bash -c "autoreconf -i"
deploy: off
build_script:
- IF EXIST configure.ac bash -c "autoreconf -i"
- cabal %CABOPTS% v2-build -j1 -vnormal+nowrap --dry all
- ps: Push-AppveyorArtifact dist-newstyle\cache\plan.json
- cabal %CABOPTS% v2-build -j1 -vnormal+nowrap all
test_script:
- IF "%DOCTEST%"=="YES" bash enable_doctest.sh
- cabal %CABOPTS% v2-test -j1 -vnormal+nowrap all
- ps: ls network*.log -recurse | %{ Push-AppveyorArtifact $_}