<commit_before>env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>="

language: cpp

os:
  - linux

sudo: required

dist: trusty
  
compiler:
  - gcc
  - clang

before_install:
  # Coverity
  - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

  # GCC
  - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi

  # Clang
  - if [ "$CXX" == "clang++" ]; then sudo apt-get install -y wget; fi
  - if [ "$CXX" == "clang++" ]; then wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -; fi
  - if [ "$CXX" == "clang++" ]; then sudo bash -c 'echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" >> /etc/apt/sources.list'; fi
  - if [ "$CXX" == "clang++" ]; then sudo bash -c 'echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" >> /etc/apt/sources.list'; fi

  # CMake
  - sudo add-apt-repository -y ppa:george-edison55-precise-backports; fi

  - sudo apt-get update; fi
  - sudo apt-get install cmake

install:
  # GCC
  - if [ "$CXX" == "g++" ]; then sudo apt-get install -y g++-6; fi
  - if [ "$CXX" == "g++" ]; then export CXX="g++-6"; fi

  # Clang
  - if [ "$CXX" == "clang++" ]; then sudo apt-get install -y clang++-3.9 libc++-dev; fi
  - if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.9"; fi

addons:
  coverity_scan:
    project:
      name: "danielil/Data-Structures-Algorithms"
    notification_email: <EMAIL>
    build_command_prepend: "cmake ."
    build_command: "make"
    branch_pattern: coverity_scan

script:
  - cmake .
  - make
  - ctest --verbose

after_success:
  - bash <(curl -s https://codecov.io/bash)<commit_msg>Updated CMake version.<commit_after>env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>

language: cpp

os:
  - linux

sudo: required

dist: trusty
  
compiler:
  - gcc
  - clang

before_install:
  # Coverity
  - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

  # GCC
  - if [ "$CXX" == "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi

  # Clang
  - if [ "$CXX" == "clang++" ]; then sudo apt-get install -y wget; fi
  - if [ "$CXX" == "clang++" ]; then wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -; fi
  - if [ "$CXX" == "clang++" ]; then sudo bash -c 'echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" >> /etc/apt/sources.list'; fi
  - if [ "$CXX" == "clang++" ]; then sudo bash -c 'echo "deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" >> /etc/apt/sources.list'; fi

  # CMake
  - mkdir ~/cmake_tmp; fi
  - cd ~/cmake_tmp; fi
  - wget http://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz; fi
  - wget http://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.sh; fi
  - sudo cmake-3.7.1-Linux-x86_64.sh --skip-license --prefix=/usr

  - sudo apt-get update; fi
  - sudo apt-get install cmake

install:
  # GCC
  - if [ "$CXX" == "g++" ]; then sudo apt-get install -y g++-6; fi
  - if [ "$CXX" == "g++" ]; then export CXX="g++-6"; fi

  # Clang
  - if [ "$CXX" == "clang++" ]; then sudo apt-get install -y clang++-3.9 libc++-dev; fi
  - if [ "$CXX" == "clang++" ]; then export CXX="clang++-3.9"; fi

addons:
  coverity_scan:
    project:
      name: "danielil/Data-Structures-Algorithms"
    notification_email: <EMAIL>
    build_command_prepend: "cmake ."
    build_command: "make"
    branch_pattern: coverity_scan

script:
  - cmake .
  - make
  - ctest --verbose

after_success:
  - bash <(curl -s https://codecov.io/bash)
{'fraction_non_alphanumeric': 0.18230631552032728, 'fraction_numerical': 0.013551521350038353, 'mean_word_length': 2.8054474708171204, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '283020', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1541, 'n_words': 382}