<commit_before>sudo: required
dist: trusty

language: cpp

branches:
  except:
    - gh-pages

os:
  - linux

compiler:
  - clang
  - gcc

env:
  global:
    # Encrypted COVERITY_SCAN_TOKEN
    - secure: "<KEY>

before_install:
  - sudo apt-get update -qq
  
install:
  # Prerequirements (including optional features)
  ## CMake
  - sudo apt-get install -qq cmake;
  
  ## Armadillo C++
  - sudo apt-get install -qq libblas-dev
  - sudo apt-get install -qq liblapack-dev
  - sudo apt-get install -qq libopenblas-dev
  - wget -O armadillo.tar.gz http://downloads.sourceforge.net/project/arma/armadillo-5.100.2.tar.gz
  - mkdir armadillo
  - tar -xzf armadillo.tar.gz -C ./armadillo --strip-components=1
  - cd armadillo
  - cmake .
  - make --quiet -j 4
  - sudo make --quiet install
  - cd ..
  - rm -Rf armadillo armadillo.tar.gz
  
  ## MPI (This will actually install 3.x on Ubuntu 14.04+ and 2.x on previous versions)
  - sudo apt-get install -qq libmpich2-dev

  
  # Testing
  - sudo apt-get install -qq catch
  - sudo apt-get install -qq clang-format-3.5
  ## Adds clang-format as an alternative to clang-format-3.5
  - sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-3.5 100
  - sudo apt-get install -qq iwyu
  - sudo apt-get install -qq valgrind
  - sudo apt-get install -qq lcov
  ## Using coveralls to store and visualise the code coverage
  - gem install coveralls-lcov
  
addons:
  coverity_scan:
    project:
      name: "SebastianNiemann/Mantella"
    notification_email: <EMAIL>
    build_command_prepend: "cov-configure --compiler gcc-4.8 --template; cmake -DBUILD_TESTS=On"
    build_command: "make -j 4"
    branch_pattern: coverity_scan

script:
  # Test matrix
  ## GCC
  ## - Unit tests with OpenMP support
  ## - Code coverage
  ## - Memory leaks
  ## - Installation
  - if [ "$CXX" == "g++" ]; then cmake -DBUILD_TESTS=On -DMEASURE_CODE_COVERAGE=On .; fi
  - if [ "$CXX" == "g++" ]; then make -j 4; fi
  - if [ "$CXX" == "g++" ]; then ../bin/mantellaTest ../test; fi
  - if [ "$CXX" == "g++" ]; then valgrind --leak-check=full --error-exitcode=1 ../bin/mantellaTest ../test; fi
  - if [ "$CXX" == "g++" ]; then sudo make install; fi
  
  # Clang
  ## - Unit tests with MPI support
  ## - Code format
  ## - Include rules
  - if [ "$CXX" == "clang++" ]; then cmake -DBUILD_TESTS=On -DSUPPORT_MPI=On .; fi
  - if [ "$CXX" == "clang++" ]; then make -j 4; fi
  - if [ "$CXX" == "clang++" ]; then mpiexec -n 4 ../bin/mantellaTest ../test; fi
  - if [ "$CXX" == "clang++" ]; then ../.travis-check format; fi
  
after_success:
  - if [ "$CXX" == "g++" ]; then cd ./CMakeFiles/mantella.dir/src/; fi
  - if [ "$CXX" == "g++" ]; then lcov --directory . --capture --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --remove coverage.info '/usr/*' --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --remove coverage.info '*.hpp' --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --list coverage.info; fi
  - if [ "$CXX" == "g++" ]; then coveralls-lcov coverage.info; fi<commit_msg>Fixed relative path to bin/<commit_after>sudo: required
dist: trusty

language: cpp

branches:
  except:
    - gh-pages

os:
  - linux

compiler:
  - clang
  - gcc

env:
  global:
    # Encrypted COVERITY_SCAN_TOKEN
    - secure: "<KEY>

before_install:
  - sudo apt-get update -qq
  
install:
  # Prerequirements (including optional features)
  ## CMake
  - sudo apt-get install -qq cmake;
  
  ## Armadillo C++
  - sudo apt-get install -qq libblas-dev
  - sudo apt-get install -qq liblapack-dev
  - sudo apt-get install -qq libopenblas-dev
  - wget -O armadillo.tar.gz http://downloads.sourceforge.net/project/arma/armadillo-5.100.2.tar.gz
  - mkdir armadillo
  - tar -xzf armadillo.tar.gz -C ./armadillo --strip-components=1
  - cd armadillo
  - cmake .
  - make --quiet -j 4
  - sudo make --quiet install
  - cd ..
  - rm -Rf armadillo armadillo.tar.gz
  
  ## MPI (This will actually install 3.x on Ubuntu 14.04+ and 2.x on previous versions)
  - sudo apt-get install -qq libmpich2-dev

  
  # Testing
  - sudo apt-get install -qq catch
  - sudo apt-get install -qq clang-format-3.5
  ## Adds clang-format as an alternative to clang-format-3.5
  - sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-3.5 100
  - sudo apt-get install -qq iwyu
  - sudo apt-get install -qq valgrind
  - sudo apt-get install -qq lcov
  ## Using coveralls to store and visualise the code coverage
  - gem install coveralls-lcov
  
addons:
  coverity_scan:
    project:
      name: "SebastianNiemann/Mantella"
    notification_email: <EMAIL>
    build_command_prepend: "cov-configure --compiler gcc-4.8 --template; cmake -DBUILD_TESTS=On"
    build_command: "make -j 4"
    branch_pattern: coverity_scan

script:
  # Test matrix
  ## GCC
  ## - Unit tests with OpenMP support
  ## - Code coverage
  ## - Memory leaks
  ## - Installation
  - if [ "$CXX" == "g++" ]; then cmake -DBUILD_TESTS=On -DMEASURE_CODE_COVERAGE=On .; fi
  - if [ "$CXX" == "g++" ]; then make -j 4; fi
  - if [ "$CXX" == "g++" ]; then ./bin/mantellaTest ./test; fi
  - if [ "$CXX" == "g++" ]; then valgrind --leak-check=full --error-exitcode=1 ./bin/mantellaTest ./test; fi
  - if [ "$CXX" == "g++" ]; then sudo make install; fi
  
  # Clang
  ## - Unit tests with MPI support
  ## - Code format
  ## - Include rules
  - if [ "$CXX" == "clang++" ]; then cmake -DBUILD_TESTS=On -DSUPPORT_MPI=On .; fi
  - if [ "$CXX" == "clang++" ]; then make -j 4; fi
  - if [ "$CXX" == "clang++" ]; then mpiexec -n 4 ./bin/mantellaTest ./test; fi
  - if [ "$CXX" == "clang++" ]; then ./.travis-check format; fi
  
after_success:
  - if [ "$CXX" == "g++" ]; then cd ./CMakeFiles/mantella.dir/src/; fi
  - if [ "$CXX" == "g++" ]; then lcov --directory . --capture --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --remove coverage.info '/usr/*' --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --remove coverage.info '*.hpp' --output-file coverage.info; fi
  - if [ "$CXX" == "g++" ]; then lcov --list coverage.info; fi
  - if [ "$CXX" == "g++" ]; then coveralls-lcov coverage.info; fi
{'fraction_non_alphanumeric': 0.1635747701242136, 'fraction_numerical': 0.009678980480722698, 'mean_word_length': 2.64063417498532, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '702172', 'n_tokens_mistral': 2433, 'n_tokens_neox': 2291, 'n_words': 653}