clone_folder: "c:\\WORK"

environment:
  global:
    CABOPTS:  "--store-dir=C:\\SR --http-transport=plain-http --enable-tests --enable-benchmarks"
  matrix:
    - GHCVER: "8.10.2.2"
    - GHCVER: "8.8.4.1"
    - GHCVER: "8.6.5"
    - GHCVER: "8.4.4"
    - GHCVER: "8.2.2"
    - GHCVER: "8.0.2.2"
    - GHCVER: "7.10.3.2"
    - GHCVER: "7.8.4.1"

cache:
 - "C:\\SR"

install:
 - "choco install -y cabal"
 - "choco install -y ghc --version %GHCVER%"
 - "refreshenv"
 - "set PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;%PATH%"
 - "cabal --version"
 - "ghc --version"
 - "cabal %CABOPTS% update -v"

build: off

test_script:
 - IF EXIST configure.ac bash -c "autoreconf -i"
 - "echo packages:. > cabal.project"
 - "cabal %CABOPTS% new-build -j1 --enable-tests --enable-benchmarks all"
 - "cabal %CABOPTS% new-test  -j1 --enable-tests --enable-benchmarks all"

clone_folder: "c:\\WORK"

environment:
  global:
    CABOPTS:  "--store-dir=C:\\SR --http-transport=plain-http --enable-tests --enable-benchmarks"
  matrix:
    - GHCVER: "8.10.2.2"
    - GHCVER: "8.8.4.1"
    - GHCVER: "8.6.5"
    - GHCVER: "8.4.4"
    - GHCVER: "8.2.2"
    - GHCVER: "8.0.2.2"
    - GHCVER: "7.10.3.2"
    - GHCVER: "7.8.4.1"

cache:
 - "C:\\SR"

install:
 - ps: Set-Service wuauserv -StartupType Manual
 - "choco install -y cabal"
 - "choco install -y ghc --version %GHCVER%"
 - "refreshenv"
 - "set PATH=C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin;%PATH%"
 - "cabal --version"
 - "ghc --version"
 - "cabal %CABOPTS% update -v"

build: off

test_script:
 - IF EXIST configure.ac bash -c "autoreconf -i"
 - "echo packages:. > cabal.project"
 - "cabal %CABOPTS% new-build -j1 --enable-tests --enable-benchmarks all"
 - "cabal %CABOPTS% new-test  -j1 --enable-tests --enable-benchmarks all"

Work around Windows install service bug
AppVeyor: Work around Windows install service bug

As suggested in
https://github.com/Mistuke/GhcChoco/issues/10#issuecomment-730441768.
