<commit_before>sudo: false

language: cpp

cache: ccache

os:
  - linux
  - osx

matrix:
  include:
    - os: linux
  allow_failures:
    - os: osx

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - build-essential
      - binutils-gold
      - python
      - gcc-6
      - g++-6

before_script:
- git config --global user.email "<EMAIL>"
- git config --global user.name "<NAME>"

- |
  export TMPDIR=/tmp
  mkdir -pv $TMPDIR/cmake

  if [ $TRAVIS_OS_NAME == 'linux' ]; then
    export CMAKE=$TMPDIR/cmake/bin/cmake
    CMAKE_URL="https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.tar.gz"
    travis_retry wget --no-check-certificate -O - $CMAKE_URL | tar --strip-components=1 -xz -C $TMPDIR/cmake

    export CC=/usr/bin/gcc-6
    export CXX=/usr/bin/g++-6
  fi

- $CMAKE --version
- $CC --version
- $CXX --version

script:
- |
  if [ -z $TRAVIS_TAG ]; then
    tools/packaging/cpt.py --current-dev=tar --with-cling-url=https://github.com/vgvassilev/cling
  else
    tools/packaging/cpt.py --last-stable=tar --with-cling-url=https://github.com/vgvassilev/cling
  fi

notifications:
  recipients:
  - <EMAIL>
  - <EMAIL>
  email:
    on_success: change
    on_failure: always
  template:
  - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"

before_deploy:
- export RELEASE_TARBALL=$(ls $HOME/ci/build/cling*.tar.bz2)
- echo "Deploying $RELEASE_TARBALL to GitHub releases"

deploy:
  provider: releases
  skip_cleanup: true
  api_key:
    secure: <KEY>
  file: '${RELEASE_TARBALL}'
  on:
    tags: true
    repo: vgvassilev/cling
<commit_msg>Install new cmake on MacOS, too.<commit_after>sudo: false

language: cpp

cache: ccache

os:
  - linux
  - osx

matrix:
  include:
    - os: linux
  allow_failures:
    - os: osx

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - build-essential
      - binutils-gold
      - python
      - gcc-6
      - g++-6

before_script:
- git config --global user.email "<EMAIL>"
- git config --global user.name "<NAME>"

- |
  export TMPDIR=`mktemp -d`
  mkdir -pv $TMPDIR/cmake

  export CMAKE=$TMPDIR/cmake/bin/cmake
  CMAKE_URL="https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.tar.gz"

  if [ $TRAVIS_OS_NAME == 'linux' ]; then
    travis_retry wget --no-check-certificate -O - $CMAKE_URL | tar --strip-components=1 -xz -C $TMPDIR/cmake

    export CC=/usr/bin/gcc-6
    export CXX=/usr/bin/g++-6
  elif [ $TRAVIS_OS_NAME == 'osx' ] ; then
    travis_retry curl -k $CMAKE_URL | tar --strip-components=1 -xz -C $TMPDIR/cmake
  fi

- $CMAKE --version
- $CC --version
- $CXX --version

script:
- |
  if [ -z $TRAVIS_TAG ]; then
    tools/packaging/cpt.py --current-dev=tar --with-cling-url=https://github.com/vgvassilev/cling
  else
    tools/packaging/cpt.py --last-stable=tar --with-cling-url=https://github.com/vgvassilev/cling
  fi

notifications:
  recipients:
  - <EMAIL>
  - <EMAIL>
  email:
    on_success: change
    on_failure: always
  template:
  - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"

before_deploy:
- export RELEASE_TARBALL=$(ls $HOME/ci/build/cling*.tar.bz2)
- echo "Deploying $RELEASE_TARBALL to GitHub releases"

deploy:
  provider: releases
  skip_cleanup: true
  api_key:
    secure: <KEY>
  file: '${RELEASE_TARBALL}'
  on:
    tags: true
    repo: vgvassilev/cling

{'fraction_non_alphanumeric': 0.1527611044417767, 'fraction_numerical': 0.009303721488595438, 'mean_word_length': 2.686946902654867, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '7603953', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1327, 'n_words': 263}