<commit_before>version: 1.0.{build}
image: Visual Studio 2015
clone_depth: 50

# Set up environment variables for build info
environment:
  CUBERITE_BUILD_SERIES_NAME: AppVeyor
  CUBERITE_BUILD_ID: "%APPVEYOR_BUILD_NUMBER%"
  CUBERITE_BUILD_DATETIME: "%APPVEYOR_REPO_COMMIT_TIMESTAMP%"

  matrix:
  - job_name: Windows-x64-debug
    configuration: Debug
    BUILD_DIR: Debug-x64

  - job_name: Windows-x86
    configuration: Release
    BUILD_DIR: Release-x86

  - job_name: Windows-x64
    configuration: Release
    BUILD_DIR: Release-x64

install:
- echo %TIME%
- git submodule update --init

for:
##############################
# Windows 64-bit debug build #
##############################
-
  matrix:
    only:
      - job_name: Windows-x64-debug

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015 Win64" -DSELF_TEST=1 -DBUILD_TOOLS=1 ..
  - echo %TIME%
  - cd ..

  build:
    project: Debug-x64\Cuberite.sln
    parallel: true
    verbosity: minimal

################################
# Windows 32-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x86

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015" ..
  - echo %TIME%
  - cd ..

  build:
    project: Release-x86\Cuberite.sln
    parallel: true
    verbosity: minimal

################################
# Windows 64-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x64

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015 Win64" ..
  - echo %TIME%
  - cd ..

  build:
    project: Release-x64\Cuberite.sln
    parallel: true
    verbosity: minimal

###########################################
# Cache for speeding up subsequent builds #
###########################################
cache:
  - Debug-x64
  - Release-x86
  - Release-x64

#####################
# Package artifacts #
#####################

after_build:
- cd %BUILD_DIR%\Server
- echo Cuberite %APPVEYOR_JOB_NAME%-#%APPVEYOR_BUILD_NUMBER%  1>buildinfo.txt
- Install\PackWindowsExecutables.cmd
- appveyor PushArtifact Cuberite.zip -FileName Cuberite.zip
- appveyor PushArtifact PDBs.zip -FileName PDBs.zip
- appveyor PushArtifact AutoAPI.zip -FileName AutoAPI.zip
- appveyor PushArtifact ManualAPI.zip -FileName ManualAPI.zip
- appveyor PushArtifact .luacheckrc -FileName .luacheckrc
<commit_msg>Appveyor: Cache only the CMakeCache file.<commit_after>version: 1.0.{build}
image: Visual Studio 2015
clone_depth: 50

# Set up environment variables for build info
environment:
  CUBERITE_BUILD_SERIES_NAME: AppVeyor
  CUBERITE_BUILD_ID: "%APPVEYOR_BUILD_NUMBER%"
  CUBERITE_BUILD_DATETIME: "%APPVEYOR_REPO_COMMIT_TIMESTAMP%"

  matrix:
  - job_name: Windows-x64-debug
    configuration: Debug
    BUILD_DIR: Debug-x64

  - job_name: Windows-x86
    configuration: Release
    BUILD_DIR: Release-x86

  - job_name: Windows-x64
    configuration: Release
    BUILD_DIR: Release-x64

install:
- echo %TIME%
- git submodule update --init

for:
##############################
# Windows 64-bit debug build #
##############################
-
  matrix:
    only:
      - job_name: Windows-x64-debug

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015 Win64" -DSELF_TEST=1 -DBUILD_TOOLS=1 ..
  - echo %TIME%
  - cd ..

  build:
    project: Debug-x64\Cuberite.sln
    parallel: true
    verbosity: minimal

################################
# Windows 32-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x86

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015" ..
  - echo %TIME%
  - cd ..

  build:
    project: Release-x86\Cuberite.sln
    parallel: true
    verbosity: minimal

################################
# Windows 64-bit release build #
################################
-
  matrix:
    only:
      - job_name: Windows-x64

  before_build:
  - if not exist %BUILD_DIR% mkdir %BUILD_DIR%
  - cd %BUILD_DIR%
  - echo %TIME%
  - cmake -G "Visual Studio 14 2015 Win64" ..
  - echo %TIME%
  - cd ..

  build:
    project: Release-x64\Cuberite.sln
    parallel: true
    verbosity: minimal

###########################################
# Cache for speeding up subsequent builds #
###########################################
cache:
  - Debug-x64\CMakeCache.txt
  - Release-x86\CMakeCache.txt
  - Release-x64\CMakeCache.txt

#####################
# Package artifacts #
#####################

after_build:
- cd %BUILD_DIR%\Server
- echo Cuberite %APPVEYOR_JOB_NAME%-#%APPVEYOR_BUILD_NUMBER%  1>buildinfo.txt
- Install\PackWindowsExecutables.cmd
- appveyor PushArtifact Cuberite.zip -FileName Cuberite.zip
- appveyor PushArtifact PDBs.zip -FileName PDBs.zip
- appveyor PushArtifact AutoAPI.zip -FileName AutoAPI.zip
- appveyor PushArtifact ManualAPI.zip -FileName ManualAPI.zip
- appveyor PushArtifact .luacheckrc -FileName .luacheckrc

{'fraction_non_alphanumeric': 0.20878909998080983, 'fraction_numerical': 0.02648244099021301, 'mean_word_length': 3.608311229000884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '47583', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1720, 'n_words': 411}