version: "{build}-{branch}"
skip_tags: true
shallow_clone: true
build: false
environment:
  global:
    # use a short path prefix to avoid running into path-length limitations
    STACK_ROOT: C:\sr
  matrix:
  - STACK_YAML: stack.yaml
  - STACK_YAML: stack-lts-6.0.yaml
  - STACK_YAML: stack-lts-7.0.yaml
cache:
- "%STACK_ROOT%"

install:
 - set PATH=%CD%\_stack;C:\msys64\usr\bin;%PATH%
 - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
 - 7z x stack.zip stack.exe > nul
 - stack setup > nul
 - stack build alex happy
 - stack --no-terminal test --only-dependencies -j 3
 - stack install

test_script:
- stack --no-terminal test
- futhark-test -- --nobuffer tests examples

version: "{build}-{branch}"
skip_tags: true
shallow_clone: true
build: false
environment:
  global:
    # use a short path prefix to avoid running into path-length limitations
    STACK_ROOT: C:\sr
  matrix:
  - STACK_YAML: stack.yaml
  - STACK_YAML: stack-lts-6.0.yaml
  - STACK_YAML: stack-lts-7.0.yaml
cache:
- "%STACK_ROOT%"

install:
 - set PATH=%CD%\_stack;C:\msys64\usr\bin;%PATH%
 - set PATH=C:\Users\appveyor\AppData\Roaming\local\bin\;%PATH%
 - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
 - 7z x stack.zip stack.exe > nul
 - stack setup > nul
 - stack build alex happy
 - stack --no-terminal test --only-dependencies -j 3
 - stack install

test_script:
- stack --no-terminal test
- futhark-test -- --nobuffer tests examples

Set PATH properly on AppVeyor.
Set PATH properly on AppVeyor.
