<commit_before># Disabled cache in hope of improving reliability of AppVeyor builds
#cache:
#- "c:\\sr" # stack root, short paths == fewer problems

init:
- git --version
  
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%

# Download latest stable Stack tool
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-i386.zip
- 7z x stack.zip stack.exe
- stack --version

# Update GIT submodule
- git submodule update --init --recursive

build: off

before_test:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
#- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%

# - curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-i386.zip
# - 7z x stack.zip stack.exe

#clone_folder: "c:\\lh"
environment:
  global:
    STACK_ROOT: "c:\\sr"
    TMP: "c:\\tmp"

test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test --jobs 1<commit_msg>Some cleanup<commit_after># Disabled cache in hope of improving reliability of AppVeyor builds
#cache:
#- "c:\\sr" # stack root, short paths == fewer problems

init:
- git --version
- del /q tests\logs\*.*
  
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%

# Download latest stable Stack tool
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-i386.zip
- 7z x stack.zip stack.exe
- stack --version

# Update GIT submodule
- git submodule update --init --recursive

build: off

before_test:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
#- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%

# - curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-i386.zip
# - 7z x stack.zip stack.exe

clone_folder: "c:\\lh"
environment:
  global:
    STACK_ROOT: "c:\\sr"
    TMP: "c:\\tmp"

test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test --jobs 1
{'fraction_non_alphanumeric': 0.14530685920577618, 'fraction_numerical': 0.019855595667870037, 'mean_word_length': 3.460764587525151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '47525', 'n_tokens_mistral': 848, 'n_tokens_neox': 782, 'n_words': 207}