<commit_before>language: cpp

compiler:
  - clang
  - gcc

env:
  - MPI=mpich2
  - MPI=mpich3
  - MPI=openmpi

matrix:
  exclude:
    - env: MPI=mpich2
      compiler: clang

notifications:
  email: false

install:
  - sudo add-apt-repository -y ppa:staticfloat/julia-deps
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - echo deb http://llvm.org/apt/precise/ llvm-toolchain-precise main | sudo tee -a /etc/apt/sources.list
  - curl http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
  - sudo apt-get update -qq -y
  - sudo apt-get install -qq -y lcov clang-3.7 gcc-4.9 g++-4.9 gfortran-4.9 libstdc++-4.9-dev libopenblas-dev liblapack-dev
  - git pull --recurse-submodules
  - sh external/travis-install-mpi.sh $MPI
  - sudo pip install cpp-coveralls
  - curl http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.tar.gz | sudo tar -x -z --strip-components 1 -C /usr
  - curl http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz | tar xz
  - sudo make -j8 -l8 -C lcov-1.11/ install
  - gem install coveralls-lcov

before_script:
  - if test x$CC = xclang; then export CC=clang-3.7; export CXX=clang++-3.7; fi
  - if test x$CC = xgcc; then export CC=gcc-4.9; export CXX=g++-4.9; fi
  - sudo hostname localhost
  - test $MPI == mpich2 && MPIEXEC='mpiexec -launcher fork' || true
  - test $MPI == mpich3 && MPIEXEC='mpiexec -launcher fork' || true
  - lcov --directory . --zerocounters

script:
  - mkdir build && cd build
    cmake .. -DASSERT=ON -DASSERT2=ON -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCXX_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" -DC_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" -DFortran_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage" -DCMAKE_BUILD_TYPE=Debug;
    if test $? -ne 0; then cat CMakeFiles/CMakeError.log; fi
  - make -j8 -l8;
    if test $? -ne 0; then make -j1; fi;
    if test $? -ne 0; then make -j1; fi;
    if test $? -ne 0; then make -j1; fi;
    sudo make -j2 install;
    sudo ctest -j8 --output-on-failure

after_success:
  - lcov --directory . --capture --output-file coverage.info # capture coverage info
  - lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info # filter out system and test code
  - lcov --list coverage.info # debug before upload
  - coveralls-lcov --repo-token <KEY>aC coverage.info # uploads to coveralls
<commit_msg>Try passing --no-keep-memory to linker to avoid Travis failure<commit_after>language: cpp

compiler:
  - clang
  - gcc

env:
  - MPI=mpich2
  - MPI=mpich3
  - MPI=openmpi

matrix:
  exclude:
    - env: MPI=mpich2
      compiler: clang

notifications:
  email: false

install:
  - sudo add-apt-repository -y ppa:staticfloat/julia-deps
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - echo deb http://llvm.org/apt/precise/ llvm-toolchain-precise main | sudo tee -a /etc/apt/sources.list
  - curl http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
  - sudo apt-get update -qq -y
  - sudo apt-get install -qq -y lcov clang-3.7 gcc-4.9 g++-4.9 gfortran-4.9 libstdc++-4.9-dev libopenblas-dev liblapack-dev
  - git pull --recurse-submodules
  - sh external/travis-install-mpi.sh $MPI
  - sudo pip install cpp-coveralls
  - curl http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.tar.gz | sudo tar -x -z --strip-components 1 -C /usr
  - curl http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz | tar xz
  - sudo make -j8 -l8 -C lcov-1.11/ install
  - gem install coveralls-lcov

before_script:
  - if test x$CC = xclang; then export CC=clang-3.7; export CXX=clang++-3.7; fi
  - if test x$CC = xgcc; then export CC=gcc-4.9; export CXX=g++-4.9; fi
  - sudo hostname localhost
  - test $MPI == mpich2 && MPIEXEC='mpiexec -launcher fork' || true
  - test $MPI == mpich3 && MPIEXEC='mpiexec -launcher fork' || true
  - lcov --directory . --zerocounters

script:
  - mkdir build && cd build
    cmake .. -DASSERT=ON -DASSERT2=ON -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCXX_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage -Wl,--no-keep-memory" -DC_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage -Wl,--no-keep-memory" -DFortran_FLAGS="-g -O0 -Wall -fprofile-arcs -ftest-coverage -Wl,--no-keep-memory" -DCMAKE_BUILD_TYPE=Debug;
    if test $? -ne 0; then cat CMakeFiles/CMakeError.log; fi
  - make -j3 && sudo make -j2 install && sudo ctest -j3 --output-on-failure

after_success:
  - lcov --directory . --capture --output-file coverage.info # capture coverage info
  - lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info # filter out system and test code
  - lcov --list coverage.info # debug before upload
  - coveralls-lcov --repo-token <KEY>aC coverage.info # uploads to coveralls

{'fraction_non_alphanumeric': 0.1488411652136934, 'fraction_numerical': 0.02232617478205401, 'mean_word_length': 2.7996768982229403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6758203', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1839, 'n_words': 462}