<commit_before>language: cpp

compiler:
  # - clang
  - gcc

env:
  - MPI=mpich2
  - 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 clang-3.7 gcc-4.9 g++-4.9 gfortran-4.9 libstdc++-4.9-dev
  # lcov
  - git pull --recurse-submodules
  - sh 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 -j2 -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; export F77=gfortran-4.9; fi
  - if test x$CC = xgcc; then export CC=gcc-4.9; export CXX=g++-4.9; export F77=gfortran-4.9; fi
  - sudo hostname localhost
  - test $MPI == mpich2 && MPIEXEC='mpiexec -launcher fork' || true
  # - lcov --directory . --zerocounters

script:
  - mkdir build && cd build;
    cmake .. -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC -DCMAKE_Fortran_COMPILER=$F77 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/Install;
    if test $? -ne 0; then cat CMakeFiles/CMakeError.log; fi
  - make -j2 && sudo make install && sudo ctest --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<commit_msg>Update cmake url in .travis.yml<commit_after>language: cpp

compiler:
  # - clang
  - gcc

env:
  - MPI=mpich2
  - 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 clang-3.7 gcc-4.9 g++-4.9 gfortran-4.9 libstdc++-4.9-dev
  # lcov
  - git pull --recurse-submodules
  - sh travis/install-mpi.sh $MPI
  # - sudo pip install cpp-coveralls
  - curl https://cmake.org/files/v3.3/cmake-3.3.2-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 -j2 -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; export F77=gfortran-4.9; fi
  - if test x$CC = xgcc; then export CC=gcc-4.9; export CXX=g++-4.9; export F77=gfortran-4.9; fi
  - sudo hostname localhost
  - test $MPI == mpich2 && MPIEXEC='mpiexec -launcher fork' || true
  # - lcov --directory . --zerocounters

script:
  - mkdir build && cd build;
    cmake .. -DEL_TESTS=ON -DEL_EXAMPLES=ON -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC -DCMAKE_Fortran_COMPILER=$F77 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/Install;
    if test $? -ne 0; then cat CMakeFiles/CMakeError.log; fi
  - make -j2 && sudo make install && sudo ctest --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
{'fraction_non_alphanumeric': 0.14968233799237612, 'fraction_numerical': 0.025412960609911054, 'mean_word_length': 2.8816568047337277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4455666', 'n_tokens_mistral': 1647, 'n_tokens_neox': 1550, 'n_words': 359}