<commit_before>version: "{build}"

shallow_clone: true

environment:
  matrix:
    - {SYSTEM: mingw, ARCH: x86_64, COMPILER: 4.03}
    - {SYSTEM: cygwin, ARCH: x86, COMPILER: 4.04}
    - {SYSTEM: cygwin, ARCH: x86, COMPILER: 4.04, LIBEV: yes}

  global:
    LWT_WARNINGS_AS_ERRORS: yes
    LWT_FORCE_LIBEV_BY_DEFAULT: yes
    # Uncomment to debug build with RDP. Alternatively, create the file
    # appveyor-debug in the repository root. The latter option avoids
    # invalidating the AppVeyor dependency cache.
    # LWT_APPVEYOR_DEBUG: yes

install:
  - 'IF EXIST C:\projects\lwt\appveyor-debug (SET LWT_APPVEYOR_DEBUG=yes)'

  - 'IF "%ARCH%"=="x86" (SET CYGSH=C:\Cygwin\bin\bash -lc) ELSE (SET CYGSH=C:\Cygwin64\bin\bash -lc)'
  - 'IF "%ARCH%"=="x86" (SET CYGSETUP=C:\Cygwin\setup-x86) ELSE (SET CYGSETUP=C:\Cygwin64\setup-x86_64)'

  - 'IF "%LWT_APPVEYOR_DEBUG%"=="yes" (%CYGSETUP% -q -P nano)'

  - 'IF "%SYSTEM%"=="cygwin" (%CYGSETUP% -q -P openssl-devel)'
  - 'IF "%LIBEV%"=="yes" (%CYGSETUP% -q -P libev-devel)'

  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/ocaml/$env:COMPILER/install.ps1") | PowerShell -Command -'
  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/camlp4/$env:COMPILER/install.ps1") | PowerShell -Command -'
  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/opam/1.2/install.ps1") | PowerShell -Command -'

  - '%CYGSH% "cd /cygdrive/c/projects/lwt ; src/util/appveyor-install.sh"'<commit_msg>AppVeyor: work around aantron/binaries#1<commit_after>version: "{build}"

shallow_clone: true

environment:
  matrix:
    - {SYSTEM: mingw, ARCH: x86_64, COMPILER: 4.03}
    - {SYSTEM: cygwin, ARCH: x86, COMPILER: 4.04}
    - {SYSTEM: cygwin, ARCH: x86, COMPILER: 4.04, LIBEV: yes}

  global:
    LWT_WARNINGS_AS_ERRORS: yes
    LWT_FORCE_LIBEV_BY_DEFAULT: yes
    # Uncomment to debug build with RDP. Alternatively, create the file
    # appveyor-debug in the repository root. The latter option avoids
    # invalidating the AppVeyor dependency cache.
    # LWT_APPVEYOR_DEBUG: yes

install:
  - 'IF EXIST C:\projects\lwt\appveyor-debug (SET LWT_APPVEYOR_DEBUG=yes)'

  - 'IF "%ARCH%"=="x86" (SET CYGSH=C:\Cygwin\bin\bash -lc) ELSE (SET CYGSH=C:\Cygwin64\bin\bash -lc)'
  - 'IF "%ARCH%"=="x86" (SET CYGSETUP=C:\Cygwin\setup-x86) ELSE (SET CYGSETUP=C:\Cygwin64\setup-x86_64)'

  - 'IF "%LWT_APPVEYOR_DEBUG%"=="yes" (%CYGSETUP% -q -P nano)'
  # Workaround for aantron/binaries#1.
  - '%CYGSETUP% -q -P patch'

  - 'IF "%SYSTEM%"=="cygwin" (%CYGSETUP% -q -P openssl-devel)'
  - 'IF "%LIBEV%"=="yes" (%CYGSETUP% -q -P libev-devel)'

  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/ocaml/$env:COMPILER/install.ps1") | PowerShell -Command -'
  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/camlp4/$env:COMPILER/install.ps1") | PowerShell -Command -'
  - ps: '(new-object net.webclient).DownloadString("https://aantron.github.io/binaries/$env:SYSTEM/$env:ARCH/opam/1.2/install.ps1") | PowerShell -Command -'

  - '%CYGSH% "cd /cygdrive/c/projects/lwt ; src/util/appveyor-install.sh"'
{'fraction_non_alphanumeric': 0.17801998183469572, 'fraction_numerical': 0.02300938540720557, 'mean_word_length': 4.122480620155039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2426180', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1340, 'n_words': 241}