<commit_before>language: cpp

sudo: false

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

env:
  global:
    secure: <KEY>
    secure: <KEY>

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    - llvm-toolchain-precise-3.5
    packages:
    - g++-4.9
    - gfortran-4.9
    - libnetcdf-dev
    - clang-3.5
    - python-numpy

install:
  - export C_COMPILER=$CC
  - |
    if [ ${TRAVIS_OS_NAME} == "linux" && ${C_COMPILER} == "gcc" ]
    then
        export DO_COVERAGE=1
    fi
  # Setting environement
  - export CMAKE_ARGS="-DCMAKE_BUILD_TYPE=debug -DBUILD_TESTS=ON -DPYTHON_BINDING=ON -DFORTRAN_BINDING=ON"
  - export FC=gfortran-4.9
  - |
    if [ ${C_COMPILER} == "gcc" ]
    then
        export CC=gcc-4.9
        export CXX=g++-4.9
    fi
  - |
    if [ ${C_COMPILER} == "clang" && ${TRAVIS_OS_NAME} == "linux" ]
    then
        export CC=clang-3.5
        export CXX=clang++-3.5
    fi
  # Install code coverage stuff
  - |
    if [ ${DO_COVERAGE} == 1 ]
    then
        gem install coveralls-lcov
        wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
        tar xf lcov_1.11.orig.tar.gz
        export LCOV='./../lcov-1.11/bin/lcov'
        export CMAKE_ARGS="$CMAKE_ARGS -DCODE_COVERAGE=ON"
    fi
  # Install Linux stuff
  - |
    if [ ${TRAVIS_OS_NAME} == "linux" ]
    then
        wget http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.sh
        mkdir -p build
        sh cmake-3.2.1-Linux-x86_64.sh --prefix=build --exclude-subdir
        export CMAKE=$(pwd)/build/bin/cmake
    fi
  # Install OS X stuff
  - |
    if [ ${TRAVIS_OS_NAME} == "osx" ]
    then
        brew tap homebrew/versions
        brew tap homebrew/python
        brew update
        brew install netcdf numpy gcc
        export CMAKE=cmake
        export FC=gfortran-5
        if [ ${C_COMPILER} == "gcc" ]
        then
            export CC=gcc-5
            export CXX=g++-5
        elif [ ${C_COMPILER} == "clang" ]
        then
            export CC=clang
            export CXX=clang++
        fi
    fi

before_script:
  - cd ${TRAVIS_BUILD_DIR}
  - mkdir -p build
  - cd build
  - $CMAKE $CMAKE_ARGS ..
  # Cleanup of the coverage data
  - |
    if [ ${DO_COVERAGE} == 1 ]
    then
        ${LCOV} --directory $(pwd) --zerocounters
    fi

script:
  - cd ${TRAVIS_BUILD_DIR}/build
  - make
  - ctest --output-on-failure

deploy:
  provider: script
  script: bash ${TRAVIS_BUILD_DIR}/scripts/conda-recipe/deploy.sh<commit_msg>Clang 3.5 and GCC 4.9 do not play nicely together<commit_after>language: cpp

sudo: false

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

env:
  global:
    secure: <KEY>
    secure: <KEY>

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    - llvm-toolchain-precise-3.6
    packages:
    - g++-4.9
    - gfortran-4.9
    - libnetcdf-dev
    - clang-3.6
    - python-numpy

install:
  - export C_COMPILER=$CC
  - |
    if [ ${TRAVIS_OS_NAME} == "linux" && ${C_COMPILER} == "gcc" ]
    then
        export DO_COVERAGE=1
    fi
  # Setting environement
  - export CMAKE_ARGS="-DCMAKE_BUILD_TYPE=debug -DBUILD_TESTS=ON -DPYTHON_BINDING=ON -DFORTRAN_BINDING=ON"
  # Install code coverage stuff
  - |
    if [ ${DO_COVERAGE} == 1 ]
    then
        gem install coveralls-lcov
        wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
        tar xf lcov_1.11.orig.tar.gz
        export LCOV='./../lcov-1.11/bin/lcov'
        export CMAKE_ARGS="$CMAKE_ARGS -DCODE_COVERAGE=ON"
    fi
  # Install Linux stuff
  - |
    if [ ${TRAVIS_OS_NAME} == "linux" ]
    then
        wget http://www.cmake.org/files/v3.2/cmake-3.2.1-Linux-x86_64.sh
        mkdir -p build
        sh cmake-3.2.1-Linux-x86_64.sh --prefix=build --exclude-subdir
        export CMAKE=$(pwd)/build/bin/cmake
        export FC=gfortran-4.9
        if [ ${C_COMPILER} == "gcc" ]
        then
            export CC=gcc-4.9
            export CXX=g++-4.9
        elif [ ${C_COMPILER} == "clang" ]
        then
            export CC=clang-3.6
            export CXX=clang++-3.6
        fi
    fi
  # Install OS X stuff
  - |
    if [ ${TRAVIS_OS_NAME} == "osx" ]
    then
        brew tap homebrew/versions
        brew tap homebrew/python
        brew update
        brew install netcdf numpy gcc
        export CMAKE=cmake
        export FC=gfortran-5
        if [ ${C_COMPILER} == "gcc" ]
        then
            export CC=gcc-5
            export CXX=g++-5
        elif [ ${C_COMPILER} == "clang" ]
        then
            export CC=clang
            export CXX=clang++
        fi
    fi
  - $FC --version

before_script:
  - cd ${TRAVIS_BUILD_DIR}
  - mkdir -p build
  - cd build
  - $CMAKE $CMAKE_ARGS ..
  # Cleanup of the coverage data
  - |
    if [ ${DO_COVERAGE} == 1 ]
    then
        ${LCOV} --directory $(pwd) --zerocounters
    fi

script:
  - cd ${TRAVIS_BUILD_DIR}/build
  - make
  - ctest --output-on-failure

deploy:
  provider: script
  script: bash ${TRAVIS_BUILD_DIR}/scripts/conda-recipe/deploy.sh
{'fraction_non_alphanumeric': 0.13178449829761665, 'fraction_numerical': 0.020428600040056078, 'mean_word_length': 1.868466398621482, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '556880', 'n_tokens_mistral': 2021, 'n_tokens_neox': 1943, 'n_words': 383}