<commit_before>dist: trusty
sudo: false
language: cpp
env:
  - DOCKERFILE=Dockerfile CACHE=latest SCRIPT=src/scripts/coverage.sh
  - DOCKERFILE=Dockerfile CACHE=latest SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
  - DOCKERFILE=Dockerfile.deb-stable CACHE=latest-deb-stable SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
  - DOCKERFILE=Dockerfile.deb-unstable CACHE=latest-deb-unstable SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
services:
  - docker
script:
  - docker pull advancedtelematic/aktualizr:$CACHE
  - docker build --cache-from advancedtelematic/aktualizr:$CACHE -t advancedtelematic/aktualizr -f ${DOCKERFILE} .
  - ci_env=`bash <(curl -s https://codecov.io/env)`
  - docker run $ci_env --rm $DARGS -it advancedtelematic/aktualizr ${SCRIPT}<commit_msg>Only build the master branch in CI by default<commit_after>dist: trusty
sudo: false
language: cpp
branches:
  only:
    - master
env:
  - DOCKERFILE=Dockerfile CACHE=latest SCRIPT=src/scripts/coverage.sh
  - DOCKERFILE=Dockerfile CACHE=latest SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
  - DOCKERFILE=Dockerfile.deb-stable CACHE=latest-deb-stable SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
  - DOCKERFILE=Dockerfile.deb-unstable CACHE=latest-deb-unstable SCRIPT=src/scripts/test.sh DARGS="-eBUILD_ONLY=1"
services:
  - docker
script:
  - docker pull advancedtelematic/aktualizr:$CACHE
  - docker build --cache-from advancedtelematic/aktualizr:$CACHE -t advancedtelematic/aktualizr -f ${DOCKERFILE} .
  - ci_env=`bash <(curl -s https://codecov.io/env)`
  - docker run $ci_env --rm $DARGS -it advancedtelematic/aktualizr ${SCRIPT}
{'fraction_non_alphanumeric': 0.12769895126465144, 'fraction_numerical': 0.003701418877236274, 'mean_word_length': 5.007407407407407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5139053', 'n_tokens_mistral': 650, 'n_tokens_neox': 597, 'n_words': 106}