<commit_before>language: cpp

env:
  global:
  - MAKEFLAGS=-j1
  - CTEST_OUTPUT_ON_FAILURE=1

matrix:
  fast_finish: true
  include:
  - compiler: ": Win32"
    env:
    - APT_REPOS=""
    - APT_PACKAGES="p7zip binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 wine1.4-i386:i386"
    - MINGW_PREFIX=i686-w64-mingw32
    - DBGHELP_URL=https://www.googledrive.com/host/0B1mEXoWzDm1McE81WFBKTzd5Z3M
    - WINE_PROGRAM=/usr/bin/wine
  - compiler: ": Win64"
    env:
    - APT_REPOS="ppa:ubuntu-wine/ppa"
    - APT_PACKAGES="p7zip binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine1.6-amd64"
    - MINGW_PREFIX=x86_64-w64-mingw32
    - DBGHELP_URL=https://www.googledrive.com/host/0B1mEXoWzDm1MaGlUZ0syNEduTGs
    - WINE_PROGRAM=/usr/bin/wine64

before_install:
- for APT_REPO in $APT_REPOS; do sudo add-apt-repository -y $APT_REPO; done
- sudo apt-get update -qq
- sudo apt-get install -qq -y --no-install-recommends $APT_PACKAGES

script:
- |
    echo "set (CMAKE_SYSTEM_NAME Windows)" > Toolchain.cmake
    echo "set (CMAKE_C_COMPILER $MINGW_PREFIX-gcc)" >> Toolchain.cmake
    echo "set (CMAKE_CXX_COMPILER $MINGW_PREFIX-g++)" >> Toolchain.cmake
    echo "set (CMAKE_RC_COMPILER $MINGW_PREFIX-windres)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH /usr/$MINGW_PREFIX)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> Toolchain.cmake
- wget -q -O dbghelp.7z "$DBGHELP_URL"
- 7zr x -othirdparty/dbghelp/ dbghelp.7z
- cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=Toolchain.cmake -DWINDBG_DIR=thirdparty/dbghelp -DWINE_PROGRAM=$WINE_PROGRAM
- make -C build all
- make -C build test
- make -C build package

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file_glob: true
  file: build/drmingw-*.zip
  on:
    repo: jrfonseca/drmingw
    tags: true
    all_branches: true<commit_msg>travis: Try to run inside xvfb again.<commit_after>language: cpp

env:
  global:
  - MAKEFLAGS=-j1
  - CTEST_OUTPUT_ON_FAILURE=1

matrix:
  fast_finish: true
  include:
  - compiler: ": Win32"
    env:
    - APT_REPOS=""
    - APT_PACKAGES="p7zip binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686 wine1.4-i386:i386"
    - MINGW_PREFIX=i686-w64-mingw32
    - DBGHELP_URL=https://www.googledrive.com/host/0B1mEXoWzDm1McE81WFBKTzd5Z3M
    - WINE_PROGRAM=/usr/bin/wine
  - compiler: ": Win64"
    env:
    - APT_REPOS="ppa:ubuntu-wine/ppa"
    - APT_PACKAGES="p7zip binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine1.6-amd64"
    - MINGW_PREFIX=x86_64-w64-mingw32
    - DBGHELP_URL=https://www.googledrive.com/host/0B1mEXoWzDm1MaGlUZ0syNEduTGs
    - WINE_PROGRAM=/usr/bin/wine64

before_install:
- for APT_REPO in $APT_REPOS; do sudo add-apt-repository -y $APT_REPO; done
- sudo apt-get update -qq
- sudo apt-get install -qq -y --no-install-recommends $APT_PACKAGES

script:
- |
    echo "set (CMAKE_SYSTEM_NAME Windows)" > Toolchain.cmake
    echo "set (CMAKE_C_COMPILER $MINGW_PREFIX-gcc)" >> Toolchain.cmake
    echo "set (CMAKE_CXX_COMPILER $MINGW_PREFIX-g++)" >> Toolchain.cmake
    echo "set (CMAKE_RC_COMPILER $MINGW_PREFIX-windres)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH /usr/$MINGW_PREFIX)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> Toolchain.cmake
    echo "set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> Toolchain.cmake
- wget -q -O dbghelp.7z "$DBGHELP_URL"
- 7zr x -othirdparty/dbghelp/ dbghelp.7z
- cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=Toolchain.cmake -DWINDBG_DIR=thirdparty/dbghelp -DWINE_PROGRAM=$WINE_PROGRAM
- make -C build all
- $WINE_PROGRAM wineboot
- xvfb-run -a -s '-screen 0 1024x768x24' make -C build test
- make -C build package

deploy:
  provider: releases
  api_key:
    secure: <KEY>
  file_glob: true
  file: build/drmingw-*.zip
  on:
    repo: jrfonseca/drmingw
    tags: true
    all_branches: true
{'fraction_non_alphanumeric': 0.12366114897760468, 'fraction_numerical': 0.0433300876338851, 'mean_word_length': 3.755787037037037, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 35, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '556803', 'n_tokens_mistral': 1936, 'n_tokens_neox': 1757, 'n_words': 295}