<commit_before>env:
  REPO: $TRAVIS_REPO_SLUG
  VERSION: v1.0.alpha.$TRAVIS_COMMIT

sudo: required

services:
  - docker

install:
  - sudo service docker stop
  - sudo curl https://get.docker.com/builds/Linux/x86_64/docker-1.10.1 -o /usr/bin/docker
  - sudo chmod +x /usr/bin/docker
  - sudo service docker start

before_script:
  - make validate
  - make binary

script:
  - make test-unit
  - make test-integration
  - make crossbinary
  - make image

deploy:
  skip_cleanup: true
  provider: script
  script: script/deploy.sh
  on:
    branch: master<commit_msg>travis after_success instead of deploy<commit_after>env:
  REPO: $TRAVIS_REPO_SLUG
  VERSION: v1.0.alpha.$TRAVIS_COMMIT

sudo: required

services:
  - docker

install:
  - sudo service docker stop
  - sudo curl https://get.docker.com/builds/Linux/x86_64/docker-1.10.1 -o /usr/bin/docker
  - sudo chmod +x /usr/bin/docker
  - sudo service docker start

before_script:
  - make validate
  - make binary

script:
  - make test-unit
  - make test-integration
  - make crossbinary
  - make image

after_success:
  if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) &&
      [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    script/deploy.sh
  else
    echo "Skipping deploy"
  fi
{'fraction_non_alphanumeric': 0.11430855315747403, 'fraction_numerical': 0.01598721023181455, 'mean_word_length': 3.0128205128205128, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7405681', 'n_tokens_mistral': 501, 'n_tokens_neox': 462, 'n_words': 110}