<commit_before>version: "{build}"

clone_depth: 5

skip_tags: true

branches:
  except:
    - /^(osx|linux|jar|windows)$/

environment:
  ssh_secret:
    secure: <KEY>
  PYTHON: C:\Python36-x64
  BUILD_PY: .\build\build.py
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0
    - JAVA_HOME: C:\Program Files\Java\jdk11
    - JAVA_HOME: C:\Program Files\Java\jdk12

install:
  - set PATH=%PYTHON%;%PYTHON%\Scripts;%JAVA_HOME%\bin;%PATH%
  - java -version
  - python --version
  - python %BUILD_PY% update-shallow
  - appveyor-retry python %BUILD_PY% dldeps

build_script:
  - python %BUILD_PY% build

test_script:
  - python %BUILD_PY% check
  - python %BUILD_PY% test
  - python %BUILD_PY% jar
  - java -jar .\build\dist\vnu.jar .\build\dist\index.html
  - java -jar .\build\dist\vnu.jar .\site\nu-about.html
  - python %BUILD_PY% war

cache:
  # cache the dependencies folder, and invalidate the cache
  # if any of the files right of the arrow change
  - 'dependencies -> .appveyor.yml,%BUILD_PY%,build\build.xml'

artifacts:
  - path: '**\*.zip*'
    name: RuntimeImageArtifacts

before_deploy:
  - cinst -y gnupg-modern
  - refreshenv
  - ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
  - cmd: appveyor-tools\secure-file -decrypt appveyor_key.enc -secret %ssh_secret%
  - cmd: appveyor-tools\secure-file -decrypt appveyor.gpg.enc -secret %ssh_secret%
  - chmod 600 appveyor_key
  - cat known_hosts >> %userprofile%\.ssh\known_hosts
  - chmod 600 %userprofile%\.ssh\known_hosts<commit_msg>AppVeyor: Install & use gpg to sign artifacts (II)<commit_after>version: "{build}"

clone_depth: 5

skip_tags: true

branches:
  except:
    - /^(osx|linux|jar|windows)$/

environment:
  ssh_secret:
    secure: <KEY>
  PYTHON: C:\Python36-x64
  BUILD_PY: .\build\build.py
  matrix:
    - JAVA_HOME: C:\Program Files\Java\jdk1.8.0
    - JAVA_HOME: C:\Program Files\Java\jdk11
    - JAVA_HOME: C:\Program Files\Java\jdk12

install:
  - set PATH=%PYTHON%;%PYTHON%\Scripts;%JAVA_HOME%\bin;%PATH%
  - java -version
  - python --version
  - python %BUILD_PY% update-shallow
  - appveyor-retry python %BUILD_PY% dldeps

build_script:
  - python %BUILD_PY% build

test_script:
  - python %BUILD_PY% check
  - python %BUILD_PY% test
  - python %BUILD_PY% jar
  - java -jar .\build\dist\vnu.jar .\build\dist\index.html
  - java -jar .\build\dist\vnu.jar .\site\nu-about.html
  - python %BUILD_PY% war

cache:
  # cache the dependencies folder, and invalidate the cache
  # if any of the files right of the arrow change
  - 'dependencies -> .appveyor.yml,%BUILD_PY%,build\build.xml'

artifacts:
  - path: '**\*.zip*'
    name: RuntimeImageArtifacts

before_deploy:
  - cinst -y gpg4win
  - refreshenv
  - ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
  - cmd: appveyor-tools\secure-file -decrypt appveyor_key.enc -secret %ssh_secret%
  - cmd: appveyor-tools\secure-file -decrypt appveyor.gpg.enc -secret %ssh_secret%
  - chmod 600 appveyor_key
  - cat known_hosts >> %userprofile%\.ssh\known_hosts
  - chmod 600 %userprofile%\.ssh\known_hosts
{'fraction_non_alphanumeric': 0.13923654568210264, 'fraction_numerical': 0.012202753441802253, 'mean_word_length': 3.415745856353591, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3544609', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1199, 'n_words': 250}