<commit_before>language: c

sudo: false

# Save common build configurations as shortcuts, so we can reference them later.
addons_shortcuts:
  addons_clang35: &clang35
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5', 'boost-latest' ]
      packages: [ 'gdb', 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6', 'libllvm3.4', 'libboost1.55-all-dev' ]
  # TODO: 4.7,4.8,5.1
  addons_gcc49: &gcc48
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-4.8', 'gcc-4.8', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_gcc49: &gcc49
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-4.9', 'gcc-4.9', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_gcc49: &gcc5
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-5', 'gcc-5', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_clang38: &clang38
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise', 'boost-latest' ]
      packages: [ 'clang-3.8', 'libgcc-4.9-dev', 'libstdc++-4.9-dev', 'libstdc++6',
                  'libllvm3.4', 'libclang-common-3.8-dev', 'libclang1-3.8', 'liblldb-3.8',
                  'libllvm3.8', 'lldb-3.8', 'llvm-3.8', 'llvm-3.8-dev', 'llvm-3.8-runtime', 'libboost1.55-all-dev']

matrix:
  include:
    - os: osx
      osx_image: xcode6
      compiler: clang
    - os: osx
      osx_image: xcode7
      env: TEST_GYP_BUILD=True
      compiler: clang
    - os: linux
      compiler: ": clang35"
      env: CXX=clang++-3.5 COVERAGE=True
      addons: *clang35
    - os: linux
      compiler: ": clang38"
      env: CXX=clang++-3.8
      addons: *clang38
    - os: linux
      compiler: ": gcc49"
      env: CXX=g++-4.9
      addons: *gcc49
    - os: linux
      compiler: ": gcc48"
      env: CXX=g++-4.8
      addons: *gcc48
    - os: linux
      compiler: ": gcc5"
      env: CXX=g++-5
      addons: *gcc5

before_install:
 - echo ${CXX}
 - if [[ $(uname -s) == 'Linux' ]]; then
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
   else
     brew install boost;
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
   fi
 - if [[ ${COVERAGE:-0} == 'True' ]]; then
     PYTHONUSERBASE=$(pwd)./.local pip install --user cpp-coveralls;
   fi

install:
 - make test
 - make bench
 - if [[ $(uname -s) == 'Linux' ]]; then
     make sizes /usr/include/boost/variant.hpp;
   else
     make sizes `brew --prefix`/include/boost/variant.hpp;
   fi
 - if [[ ${TEST_GYP_BUILD:-0} == 'True' ]]; then
     make clean;
     make gyp;
   fi

script:
 - if [[ ${COVERAGE:-0} == 'True' ]]; then
    make clean;
    make coverage;
    ./out/cov-test;
    cp unit*gc* test/;
    ./.local/bin/coveralls -i optional.hpp -i recursive_wrapper.hpp -i variant.hpp -i variant_io.hpp --gcov-options '\-lp';
   fi
<commit_msg>test both GLIBCXX_USE_CXX11_ABI modes with gcc 5<commit_after>language: c

sudo: false

# Save common build configurations as shortcuts, so we can reference them later.
addons_shortcuts:
  addons_clang35: &clang35
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5', 'boost-latest' ]
      packages: [ 'gdb', 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6', 'libllvm3.4', 'libboost1.55-all-dev' ]
  # TODO: 4.7,4.8,5.1
  addons_gcc49: &gcc48
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-4.8', 'gcc-4.8', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_gcc49: &gcc49
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-4.9', 'gcc-4.9', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_gcc49: &gcc5
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'boost-latest' ]
      packages: [ 'gdb', 'g++-5', 'gcc-5', 'libllvm3.4', 'libboost1.55-all-dev' ]
  addons_clang38: &clang38
    apt:
      sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise', 'boost-latest' ]
      packages: [ 'clang-3.8', 'libgcc-4.9-dev', 'libstdc++-4.9-dev', 'libstdc++6',
                  'libllvm3.4', 'libclang-common-3.8-dev', 'libclang1-3.8', 'liblldb-3.8',
                  'libllvm3.8', 'lldb-3.8', 'llvm-3.8', 'llvm-3.8-dev', 'llvm-3.8-runtime', 'libboost1.55-all-dev']

matrix:
  include:
    - os: osx
      osx_image: xcode6
      compiler: clang
    - os: osx
      osx_image: xcode7
      env: TEST_GYP_BUILD=True
      compiler: clang
    - os: linux
      compiler: "clang35"
      env: CXX=clang++-3.5 COVERAGE=True
      addons: *clang35
    - os: linux
      compiler: "clang38"
      env: CXX=clang++-3.8
      addons: *clang38
    - os: linux
      compiler: "gcc47"
      env: CXX=g++-4.7
      addons: *gcc47
    - os: linux
      compiler: "gcc48"
      env: CXX=g++-4.8
      addons: *gcc48
    - os: linux
      compiler: "gcc49"
      env: CXX=g++-4.9
      addons: *gcc49
    - os: linux
      compiler: "gcc5"
      env: CXX=g++-5 CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
      addons: *gcc5
    - os: linux
      compiler: "gcc5"
      env: CXX=g++-5 CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=1"
      addons: *gcc5

before_install:
 - echo ${CXX}
 - if [[ $(uname -s) == 'Linux' ]]; then
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
   else
     brew install boost;
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
   fi
 - if [[ ${COVERAGE:-0} == 'True' ]]; then
     PYTHONUSERBASE=$(pwd)./.local pip install --user cpp-coveralls;
   fi

install:
 - make test
 - make bench
 - if [[ $(uname -s) == 'Linux' ]]; then
     make sizes /usr/include/boost/variant.hpp;
   else
     make sizes `brew --prefix`/include/boost/variant.hpp;
   fi
 - if [[ ${TEST_GYP_BUILD:-0} == 'True' ]]; then
     make clean;
     make gyp;
   fi

script:
 - if [[ ${COVERAGE:-0} == 'True' ]]; then
    make clean;
    make coverage;
    ./out/cov-test;
    cp unit*gc* test/;
    ./.local/bin/cpp-coveralls -i optional.hpp -i recursive_wrapper.hpp -i variant.hpp -i variant_io.hpp --gcov-options '\-lp';
   fi

{'fraction_non_alphanumeric': 0.18323235631242837, 'fraction_numerical': 0.0438840674635664, 'mean_word_length': 2.510344827586207, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 3, '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': '1110282', 'n_tokens_mistral': 2622, 'n_tokens_neox': 2477, 'n_words': 480}