<commit_before>platform:
  - x86
  - x64
environment:
  matrix:
    - RUST_VERSION: 1.0.0
      GTK: gnome
    - RUST_VERSION: 1.0.0
      GTK: win64
    #- RUST_VERSION: nightly
      #GTK: gnome

matrix:
  #fast_finish: true
  allow_failures:
    - platform: x86
      GTK: win64

install:
  - if "%PLATFORM%-%GTK%" == "x86-win64" ( exit 1 )
  - if "%PLATFORM%" == "x86" SET RUST_PLATFORM=i686-pc-windows-gnu
  - if "%PLATFORM%" == "x64" SET RUST_PLATFORM=x86_64-pc-windows-gnu
  - if "%GTK%" == "win64" SET FEATURES=cairo_1_12
  - if "%GTK%" == "win64" SET EXAMPLES_FEATURES=gtk_3_10
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-$Env:RUST_VERSION-$Env:RUST_PLATFORM.exe" -FileName rust.exe
  - cmd: rust.exe /VERYSILENT /NORESTART /COMPONENTS="rust,cargo" /DIR=C:\Rust
  - ps: >-
      if ($Env:PLATFORM -eq "x86") {
        $Env:MINGW = "C:\mingw"
      }
      else {
        Start-FileDownload "http://libgd.blob.core.windows.net/mingw/mingw-w64-dgn-x86_64-20141001.7z" -FileName mingw-w64.7z;
        7z x -oC:\ mingw-w64.7z | Out-Null;
        $Env:MINGW = "C:\mingw64"
      }
  - ps: >-
      if (!(Test-Path -Path "C:\Deps\gtk")) {
        if ($Env:GTK -eq "gnome") {
          if ($Env:PLATFORM -eq "x86") {
            Start-FileDownload "http://win32builder.gnome.org/gtk+-bundle_3.6.4-20130921_win32.zip" -FileName gtk.zip
          }
          else {
            Start-FileDownload "http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip" -FileName gtk.zip
          }
        }
        elseif ($Env:GTK -eq "win64" -and $Env:PLATFORM -eq "x64") {
            Start-FileDownload "http://lvserver.ugent.be/gtk-win64/sdk/gtk2-gtk3-sdk-2.24.25-3.14.7-2015-01-27-ts-win64.zip" -FileName gtk.zip
        }
        7z x -oC:\Deps\gtk gtk.zip | Out-Null
      }
  - cmd: SET PATH=%MINGW%\bin;C:\Deps\gtk\bin;C:\Rust\bin;%PATH%

cache:
  C:\Deps

build_script:
  - rustc -V
  - "echo Features: %FEATURES%"
  - cargo build --features "%FEATURES%"
  - mkdir .cargo
  - echo paths = ["."] > .cargo\config
  - git clone -q --depth 1 https://github.com/rust-gnome/examples _examples
  - cd _examples
  - bash -c "./git_deps.sh glib gdk gtk pango"
  - "echo Features: %EXAMPLES_FEATURES%"
  - cargo build --features "%EXAMPLES_FEATURES%"

test: false
<commit_msg>Appveyor: only build examples and minor improvements<commit_after>platform:
  - x86
  - x64
environment:
  matrix:
    - RUST_VERSION: 1.0.0
      GTK: gnome
    - RUST_VERSION: 1.0.0
      GTK: win64
      FEATURES: gtk_3_14
    #- RUST_VERSION: nightly
      #GTK: gnome

matrix:
  #fast_finish: true
  allow_failures:
    - platform: x86
      GTK: win64

install:
  - if "%PLATFORM%-%GTK%" == "x86-win64" ( exit 1 )
  - if "%PLATFORM%" == "x86" SET RUST_PLATFORM=i686-pc-windows-gnu
  - if "%PLATFORM%" == "x64" SET RUST_PLATFORM=x86_64-pc-windows-gnu
  - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-$Env:RUST_VERSION-$Env:RUST_PLATFORM.exe" -FileName rust.exe
  - cmd: rust.exe /VERYSILENT /NORESTART /COMPONENTS="rust,cargo" /DIR=C:\Rust
  - ps: >-
      if ($Env:PLATFORM -eq "x86") {
        $Env:MINGW = "C:\mingw"
      }
      else {
        Start-FileDownload "http://libgd.blob.core.windows.net/mingw/mingw-w64-dgn-x86_64-20141001.7z" -FileName mingw-w64.7z;
        7z x -oC:\ mingw-w64.7z | Out-Null;
        $Env:MINGW = "C:\mingw64"
      }
  - ps: >-
      if (!(Test-Path -Path "C:\Deps\gtk")) {
        if ($Env:GTK -eq "gnome") {
          if ($Env:PLATFORM -eq "x86") {
            Start-FileDownload "http://win32builder.gnome.org/gtk+-bundle_3.6.4-20130921_win32.zip" -FileName gtk.zip
          }
          else {
            Start-FileDownload "http://win32builder.gnome.org/gtk+-bundle_3.6.4-20131201_win64.zip" -FileName gtk.zip
          }
        }
        elseif ($Env:GTK -eq "win64" -and $Env:PLATFORM -eq "x64") {
            Start-FileDownload "http://lvserver.ugent.be/gtk-win64/sdk/gtk2-gtk3-sdk-2.24.25-3.14.7-2015-01-27-ts-win64.zip" -FileName gtk.zip
        }
        7z x -oC:\Deps\gtk gtk.zip | Out-Null
      }
  - cmd: SET PATH=%MINGW%\bin;C:\Deps\gtk\bin;C:\Rust\bin;%PATH%

cache:
  C:\Deps

build_script:
  - rustc -V
  - mkdir .cargo
  - echo paths = ["."] > .cargo\config
  - git clone -q --depth 50 https://github.com/rust-gnome/examples _examples
  - cd _examples
  - bash -c "./git_deps.sh glib gdk gtk pango"
  - "echo Features: %FEATURES%"
  - cargo build --features "%FEATURES%"

test: false

{'fraction_non_alphanumeric': 0.1677115987460815, 'fraction_numerical': 0.05642633228840126, 'mean_word_length': 2.3385650224215246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1913228', 'n_tokens_mistral': 2007, 'n_tokens_neox': 1829, 'n_words': 321}