<commit_before>language: cpp
compiler:
  - clang
# - gcc
# before_install:
#   - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
#   - sudo apt-get update -qq
#   - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.7; fi
#   - if [ "$CXX" = "g++" ]; then export CXX="g++-4.7" CC="gcc-4.7"; fi
before_install:
  ### add PPA for modern version of boost
  - sudo add-apt-repository ppa:boost-latest/ppa -y
  - sudo apt-get update -q
  ### install boost and other necessary packages
  - sudo apt-get install -q gfortran libcr0 default-jdk libboost1.54-all-dev
  ### get an MPI that supports MPI-3 
  - wget --no-check-certificate -q http://www.cebacad.net/files/mpich/ubuntu/mpich-3.1/mpich_3.1-1ubuntu_amd64.deb;
  - sudo dpkg -i ./mpich_3.1-1ubuntu_amd64.deb
  - rm -f ./mpich_3.1-1ubuntu_amd64.deb
  ### stupid hack to get a modern version of cmake
  - wget --no-check-certificate -q http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz;
  - ln -s /usr/local ./cmake-3.2.3-Linux-x86_64
  - sudo tar xzf ./cmake-3.2.3-Linux-x86_64.tar.gz
  - rm -f ./cmake-3.2.3-Linux-x86_64.tar.gz
before_script:
  - export MPIEXEC='mpiexec -launcher fork'
script:
  - "./configure && cd build/Make+Release && make -j1 VERBOSE=1 check-all-pass-compile-only"
branches:
  only:
    - master
notifications:
  irc:
    channels: "chat.freenode.net#grappa.io"
    on_success: change
    on_failure: always
  email:
    - <EMAIL><commit_msg>Switch to new, faster container-based Travis CI infrastructure<commit_after>sudo: false

language: cpp

compiler:
  - gcc

addons:
  apt:
    sources:
    - boost-latest
    - ubuntu-toolchain-r-test
    packages:
    - libboost-date-time1.55-dev
    - libboost-exception1.55-dev
    - libboost-filesystem1.55-dev
    - libboost-iostreams1.55-dev
    - libboost-math1.55-dev
    - libboost-random1.55-dev
    - libboost-regex1.55-dev
    - libboost-serialization1.55-dev
    - libboost-signals1.55-dev
    - libboost-system1.55-dev
    - libboost-test1.55-dev
    - libboost-timer1.55-dev
    - gcc-4.9
    - g++-4.9

cache:
  apt: true
  directories:
    - $HOME/installed
    
install:
  - |
    if [ ! -d "$HOME/installed/bin" ]; then
      set -e
      export CC=gcc-4.9
      export CXX=g++-4.9
      ### create a place to hold our local dependences
      mkdir -p $HOME/installed
      ### get a modern version of CMake
      wget --no-check-certificate -q http://www.cmake.org/files/v3.2/cmake-3.2.3-Linux-x86_64.tar.gz;
      tar xzf cmake-3.2.3-Linux-x86_64.tar.gz  -C $HOME/installed --strip-components=1
      ### get a modern version of MPI
      wget --no-check-certificate -q http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz
      tar xzf mpich-3.2.tar.gz
      cd mpich-3.2 && ./configure --disable-fortran --prefix=$HOME/installed && make -j2 && make install
    else
      echo 'Using cached dependences.'
    fi
  
before_script:
  - export CC=gcc-4.9
  - export CXX=g++-4.9
  - export PATH="$HOME/installed/bin:$PATH"
  
script:
  - ./configure
  - cd build/Make+Release && make VERBOSE=1 -j2 check-all-pass-compile-only

branches:
  only:
    - master

notifications:
  irc:
    channels: "chat.freenode.net#grappa.io"
    on_success: change
    on_failure: always
  email:
    - <EMAIL>
{'fraction_non_alphanumeric': 0.14811407543698252, 'fraction_numerical': 0.041704998466728, 'mean_word_length': 2.462845010615711, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4384343', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1272, 'n_words': 260}