<commit_before>environment:
        COVERITY_SCAN_PROJECT_NAME:       "saprykin/plibsys"
        COVERITY_SCAN_NOTIFICATION_EMAIL: "<EMAIL>"
        COVERITY_SCAN_TOKEN:
                secure: <KEY>

        matrix:
                - CMAKE_GENERATOR: "Watcom WMake"
                  USE_WATCOM:      "1"
                  SKIP_TESTS:      "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_493:   "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_540:   "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_620:   "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_MSYS64:      "1"
                - CMAKE_GENERATOR: "MSYS Makefiles"
                  USE_MSYS64:      "1"
                  USE_MINGW64:     "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_CYGWIN:      "1"
                  USE_CYGWIN64:    "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_CYGWIN:      "1"
                - CMAKE_GENERATOR: "Visual Studio 9 2008"
                  USE_OLD_MSBUILD: "1"
                - CMAKE_GENERATOR: "Visual Studio 10 2010"
                - CMAKE_GENERATOR: "Visual Studio 10 2010 Win64"
                - CMAKE_GENERATOR: "Visual Studio 11 2012"
                - CMAKE_GENERATOR: "Visual Studio 11 2012 Win64"
                - CMAKE_GENERATOR: "Visual Studio 12 2013"
                - CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
                - CMAKE_GENERATOR: "Visual Studio 14 2015"
                - CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
                  USE_COVERITY:    "1"
                - CMAKE_GENERATOR: "NMake Makefiles"
                  USE_LLVM:        "1"

os: Visual Studio 2015

configuration: Release

version: 0.0.1.{build}

branches:
        only:
                - master
                - appveyor_test

clone_folder: c:\projects\plibsys

cache:
        - c:\projects\i686-4.9.3-release-win32-dwarf-rt_v4-rev1.7z
        - c:\projects\i686-5.4.0-release-win32-dwarf-rt_v5-rev0.7z
        - c:\projects\i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
        - c:\projects\open-watcom-c-win32-1.9.exe
        - c:\cygwin-setup-cache

install:
        - If "%USE_CYGWIN%" == "1" (
          If "%USE_CYGWIN64%" == "1" (
                c:\cygwin64\setup-x86_64.exe -gqnNdO -R c:\cygwin64 -s http://cygwin.mirror.constant.com -l "c:\cygwin-setup-cache" -P cmake -P cygrunsrv
          ))

        - If "%USE_CYGWIN%" == "1" (
          If NOT "%USE_CYGWIN64%" == "1" (
                c:\cygwin\setup-x86.exe -gqnNdO -R c:\cygwin -s http://cygwin.mirror.constant.com -l "c:\cygwin-setup-cache" -P cmake -P cygrunsrv
          ))

        - ps: >-
                If ($env:USE_MSYS64 -eq "1") {
                        $env:PATH = "c:\msys64\usr\bin;$env:PATH";

                        If ($env:USE_MINGW64 -eq "1") {
                                $env:PATH   = "c:\msys64\mingw64\bin;$env:PATH";
                        } Else {
                                & pacman --sync --noconfirm cmake;
                        }
                } ElseIf ($env:USE_MINGW -eq "1") {
                        If ($env:USE_MINGW_493 -eq "1") {
                                $MINGW_BASE    = "i686-4.9.3-release-win32-dwarf-rt_v4-rev1";
                                $MINGW_VERSION = "4.9.3";
                        } ElseIf ($env:USE_MINGW_540 -eq "1") {
                                $MINGW_BASE    = "i686-5.4.0-release-win32-dwarf-rt_v5-rev0";
                                $MINGW_VERSION = "5.4.0";
                        } ElseIf ($env:USE_MINGW_620 -eq "1") {
                                $MINGW_BASE    = "i686-6.2.0-release-win32-dwarf-rt_v5-rev1";
                                $MINGW_VERSION = "6.2.0";
                        }

                        $MINGW_ARCHIVE = "$MINGW_BASE.7z";
                        $MINGW_URL     = "https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/$MINGW_VERSION/threads-win32/dwarf/$MINGW_ARCHIVE/download";

                        Set-Location c:\projects | Out-Null;

                        If (-Not (Test-Path "$MINGW_ARCHIVE")) {
                                & appveyor DownloadFile "$MINGW_URL" -FileName "$MINGW_ARCHIVE";
                        }

                        New-Item -ItemType directory -Path "$MINGW_BASE" | Out-Null;
                        Copy-Item "$MINGW_ARCHIVE" "$MINGW_BASE";

                        Set-Location "$MINGW_BASE" | Out-Null;
                        & 7z x -y "$MINGW_ARCHIVE";

                        $env:PATH = "c:\projects\$MINGW_BASE\mingw32\bin;C:\Program Files (x86)\CMake\bin";
                } ElseIf ($env:USE_WATCOM -eq "1") {
                        $WATCOM_BASE      = "open-watcom-c-win32-1.9";
                        $WATCOM_INSTALLER = "$WATCOM_BASE.exe";
                        $WATCOM_URL       = "https://sourceforge.net/projects/openwatcom/files/open-watcom-1.9/$WATCOM_INSTALLER/download";

                        Set-Location c:\projects | Out-Null;

                        If (-Not (Test-Path "$WATCOM_INSTALLER")) {
                                & appveyor DownloadFile "$WATCOM_URL" -FileName "$WATCOM_INSTALLER";
                        }

                        New-Item -ItemType directory -Path "$WATCOM_BASE" | Out-Null;
                        Copy-Item "$WATCOM_INSTALLER" "$WATCOM_BASE";

                        Set-Location "$WATCOM_BASE" | Out-Null;
                        & 7z x -y "$WATCOM_INSTALLER";

                        $CUR_LOCATION = "c:\projects\$WATCOM_BASE";

                        $env:PATH    = "$CUR_LOCATION\binw;$env:PATH";
                        $env:PATH    = "$CUR_LOCATION\binnt;$env:PATH";
                        $env:INCLUDE = "$CUR_LOCATION\h\nt;$env:INCLUDE";
                        $env:INCLUDE = "$env:INCLUDE;$CUR_LOCATION\h\nt\directx";
                        $env:INCLUDE = "$env:INCLUDE;$CUR_LOCATION\h\nt\ddk";
                        $env:INCLUDE = "$CUR_LOCATION\h;$env:INCLUDE";
                        $env:WATCOM  = "$CUR_LOCATION";
                        $env:EDPATH  = "$CUR_LOCATION\eddat";
                }

build_script:
        - ps: >-
                $BUILD_DIR = "c:\projects\plibsys-build";

                New-Item -ItemType directory -Path $BUILD_DIR | Out-Null;
                Set-Location $BUILD_DIR | Out-Null;

                If ($env:APPVEYOR_REPO_BRANCH -eq "appveyor_test" -And -Not ($env:SKIP_TESTS -eq "1")) {
                        $VAR_BOOST_TESTS = "-DPLIBSYS_TESTS_STATIC=ON";

                        If ($env:USE_MSYS64 -eq "1" -And -Not ($env:USE_MINGW64 -eq "1")) {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=/c/Libraries/boost_1_62_0";
                        } ElseIf ($env:USE_CYGWIN -eq "1") {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=/cygdrive/c/Libraries/boost_1_62_0";
                        } Else {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=C:\Libraries\boost_1_62_0";
                        }
                }

                If ($env:USE_MSYS64 -eq "1") {
                        if ($env:USE_MINGW64 -eq "1") {
                                $BUILD_TYPE = "";
                        } Else {
                                $BUILD_TYPE   = "-DCMAKE_BUILD_TYPE=$env:configuration";  
                                $CTEST_PARAMS = "-E ""pshm|psemaphore"""
                        }

                        $BUILD_COMMAND = "make";
                        $BUILD_PARAMS  = @("-j", "2");<commit_msg>appveyor: Use list to pass CTest params for MSYS build<commit_after>environment:
        COVERITY_SCAN_PROJECT_NAME:       "saprykin/plibsys"
        COVERITY_SCAN_NOTIFICATION_EMAIL: "<EMAIL>"
        COVERITY_SCAN_TOKEN:
                secure: <KEY>

        matrix:
                - CMAKE_GENERATOR: "Watcom WMake"
                  USE_WATCOM:      "1"
                  SKIP_TESTS:      "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_493:   "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_540:   "1"
                - CMAKE_GENERATOR: "MinGW Makefiles"
                  USE_MINGW:       "1"
                  USE_MINGW_620:   "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_MSYS64:      "1"
                - CMAKE_GENERATOR: "MSYS Makefiles"
                  USE_MSYS64:      "1"
                  USE_MINGW64:     "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_CYGWIN:      "1"
                  USE_CYGWIN64:    "1"
                - CMAKE_GENERATOR: "Unix Makefiles"
                  USE_CYGWIN:      "1"
                - CMAKE_GENERATOR: "Visual Studio 9 2008"
                  USE_OLD_MSBUILD: "1"
                - CMAKE_GENERATOR: "Visual Studio 10 2010"
                - CMAKE_GENERATOR: "Visual Studio 10 2010 Win64"
                - CMAKE_GENERATOR: "Visual Studio 11 2012"
                - CMAKE_GENERATOR: "Visual Studio 11 2012 Win64"
                - CMAKE_GENERATOR: "Visual Studio 12 2013"
                - CMAKE_GENERATOR: "Visual Studio 12 2013 Win64"
                - CMAKE_GENERATOR: "Visual Studio 14 2015"
                - CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
                  USE_COVERITY:    "1"
                - CMAKE_GENERATOR: "NMake Makefiles"
                  USE_LLVM:        "1"

os: Visual Studio 2015

configuration: Release

version: 0.0.1.{build}

branches:
        only:
                - master
                - appveyor_test

clone_folder: c:\projects\plibsys

cache:
        - c:\projects\i686-4.9.3-release-win32-dwarf-rt_v4-rev1.7z
        - c:\projects\i686-5.4.0-release-win32-dwarf-rt_v5-rev0.7z
        - c:\projects\i686-6.2.0-release-win32-dwarf-rt_v5-rev1.7z
        - c:\projects\open-watcom-c-win32-1.9.exe
        - c:\cygwin-setup-cache

install:
        - If "%USE_CYGWIN%" == "1" (
          If "%USE_CYGWIN64%" == "1" (
                c:\cygwin64\setup-x86_64.exe -gqnNdO -R c:\cygwin64 -s http://cygwin.mirror.constant.com -l "c:\cygwin-setup-cache" -P cmake -P cygrunsrv
          ))

        - If "%USE_CYGWIN%" == "1" (
          If NOT "%USE_CYGWIN64%" == "1" (
                c:\cygwin\setup-x86.exe -gqnNdO -R c:\cygwin -s http://cygwin.mirror.constant.com -l "c:\cygwin-setup-cache" -P cmake -P cygrunsrv
          ))

        - ps: >-
                If ($env:USE_MSYS64 -eq "1") {
                        $env:PATH = "c:\msys64\usr\bin;$env:PATH";

                        If ($env:USE_MINGW64 -eq "1") {
                                $env:PATH   = "c:\msys64\mingw64\bin;$env:PATH";
                        } Else {
                                & pacman --sync --noconfirm cmake;
                        }
                } ElseIf ($env:USE_MINGW -eq "1") {
                        If ($env:USE_MINGW_493 -eq "1") {
                                $MINGW_BASE    = "i686-4.9.3-release-win32-dwarf-rt_v4-rev1";
                                $MINGW_VERSION = "4.9.3";
                        } ElseIf ($env:USE_MINGW_540 -eq "1") {
                                $MINGW_BASE    = "i686-5.4.0-release-win32-dwarf-rt_v5-rev0";
                                $MINGW_VERSION = "5.4.0";
                        } ElseIf ($env:USE_MINGW_620 -eq "1") {
                                $MINGW_BASE    = "i686-6.2.0-release-win32-dwarf-rt_v5-rev1";
                                $MINGW_VERSION = "6.2.0";
                        }

                        $MINGW_ARCHIVE = "$MINGW_BASE.7z";
                        $MINGW_URL     = "https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/$MINGW_VERSION/threads-win32/dwarf/$MINGW_ARCHIVE/download";

                        Set-Location c:\projects | Out-Null;

                        If (-Not (Test-Path "$MINGW_ARCHIVE")) {
                                & appveyor DownloadFile "$MINGW_URL" -FileName "$MINGW_ARCHIVE";
                        }

                        New-Item -ItemType directory -Path "$MINGW_BASE" | Out-Null;
                        Copy-Item "$MINGW_ARCHIVE" "$MINGW_BASE";

                        Set-Location "$MINGW_BASE" | Out-Null;
                        & 7z x -y "$MINGW_ARCHIVE";

                        $env:PATH = "c:\projects\$MINGW_BASE\mingw32\bin;C:\Program Files (x86)\CMake\bin";
                } ElseIf ($env:USE_WATCOM -eq "1") {
                        $WATCOM_BASE      = "open-watcom-c-win32-1.9";
                        $WATCOM_INSTALLER = "$WATCOM_BASE.exe";
                        $WATCOM_URL       = "https://sourceforge.net/projects/openwatcom/files/open-watcom-1.9/$WATCOM_INSTALLER/download";

                        Set-Location c:\projects | Out-Null;

                        If (-Not (Test-Path "$WATCOM_INSTALLER")) {
                                & appveyor DownloadFile "$WATCOM_URL" -FileName "$WATCOM_INSTALLER";
                        }

                        New-Item -ItemType directory -Path "$WATCOM_BASE" | Out-Null;
                        Copy-Item "$WATCOM_INSTALLER" "$WATCOM_BASE";

                        Set-Location "$WATCOM_BASE" | Out-Null;
                        & 7z x -y "$WATCOM_INSTALLER";

                        $CUR_LOCATION = "c:\projects\$WATCOM_BASE";

                        $env:PATH    = "$CUR_LOCATION\binw;$env:PATH";
                        $env:PATH    = "$CUR_LOCATION\binnt;$env:PATH";
                        $env:INCLUDE = "$CUR_LOCATION\h\nt;$env:INCLUDE";
                        $env:INCLUDE = "$env:INCLUDE;$CUR_LOCATION\h\nt\directx";
                        $env:INCLUDE = "$env:INCLUDE;$CUR_LOCATION\h\nt\ddk";
                        $env:INCLUDE = "$CUR_LOCATION\h;$env:INCLUDE";
                        $env:WATCOM  = "$CUR_LOCATION";
                        $env:EDPATH  = "$CUR_LOCATION\eddat";
                }

build_script:
        - ps: >-
                $BUILD_DIR = "c:\projects\plibsys-build";

                New-Item -ItemType directory -Path $BUILD_DIR | Out-Null;
                Set-Location $BUILD_DIR | Out-Null;

                If ($env:APPVEYOR_REPO_BRANCH -eq "appveyor_test" -And -Not ($env:SKIP_TESTS -eq "1")) {
                        $VAR_BOOST_TESTS = "-DPLIBSYS_TESTS_STATIC=ON";

                        If ($env:USE_MSYS64 -eq "1" -And -Not ($env:USE_MINGW64 -eq "1")) {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=/c/Libraries/boost_1_62_0";
                        } ElseIf ($env:USE_CYGWIN -eq "1") {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=/cygdrive/c/Libraries/boost_1_62_0";
                        } Else {
                                $VAR_BOOST_ROOT = "-DBOOST_ROOT=C:\Libraries\boost_1_62_0";
                        }
                }

                If ($env:USE_MSYS64 -eq "1") {
                        if ($env:USE_MINGW64 -eq "1") {
                                $BUILD_TYPE = "";
                        } Else {
                                $BUILD_TYPE   = "-DCMAKE_BUILD_TYPE=$env:configuration";  
                                $CTEST_PARAMS = @("-E", "pshm|psemaphore");
                        }

                        $BUILD_COMMAND = "make";
                        $BUILD_PARAMS  = @("-j", "2");
{'fraction_non_alphanumeric': 0.11938775510204082, 'fraction_numerical': 0.03494897959183674, 'mean_word_length': 1.2011510387422797, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '169100', 'n_tokens_mistral': 5593, 'n_tokens_neox': 4911, 'n_words': 766}