<commit_before>language: php

php:
  - 5.6

branches:
  only:
    - staging
    - master

env:
  global:
    # Shippable API token used to trigger deploy
    - secure: <KEY>      
      
build:
  ci:
    # Create the version file
    - ./create_version.sh
      
    # Get the latest image to reuse its cache. Will not work with Docker 1.10 . Docker 1.13 adds support with the --cache-from flag.
    # Prevent build failure in case there is no latest image for the current branch with a conditional `echo`.
    - docker pull nrgi/rc-subsite:$BRANCH || echo 'Cache not available'

    - docker build -t nrgi/rc-subsite:$BRANCH.$COMMIT .
    # Create the `latest` tag and force it in case the tag is already there from a previous build
    - docker tag -f nrgi/rc-subsite:$BRANCH.$COMMIT nrgi/rc-subsite:$BRANCH

    - docker push nrgi/rc-subsite:$BRANCH
    - docker push nrgi/rc-subsite:$BRANCH.$COMMIT

    - ./shippable-deploy.sh
    
integrations:
  hub:
    - integrationName: nrgiDockerHub
      type: docker
  notifications:
    - integrationName: email
      type: email
      recipients:
        - <EMAIL>
        - <EMAIL>
      branches:
        only:
          - master
          - staging
      on_success: change
      on_failure: always
<commit_msg>#1077 Update Docker build for latest Docker version<commit_after>language: php

php:
  - 5.6

branches:
  only:
    - staging
    - master

env:
  global:
    # Shippable API token used to trigger deploy
    - secure: <KEY>      
      
build:
  ci:
    # Create the version file
    - ./create_version.sh
      
    # Get the latest image to reuse its cache. Will not work with Docker 1.10 . Docker 1.13 adds support with the --cache-from flag.
    # Prevent build failure in case there is no latest image for the current branch with a conditional `echo`.
    - docker pull nrgi/rc-subsite:$BRANCH || echo 'Cache not available'

    - docker build --cache-from nrgi/rc-subsite:$BRANCH -t nrgi/rc-subsite:$BRANCH.$COMMIT .
    # Create the `latest` tag and force it in case the tag is already there from a previous build
    - docker tag nrgi/rc-subsite:$BRANCH.$COMMIT nrgi/rc-subsite:$BRANCH

    - docker push nrgi/rc-subsite:$BRANCH
    - docker push nrgi/rc-subsite:$BRANCH.$COMMIT

    - ./shippable-deploy.sh
    
integrations:
  hub:
    - integrationName: nrgiDockerHub
      type: docker
  notifications:
    - integrationName: email
      type: email
      recipients:
        - <EMAIL>
        - <EMAIL>
      branches:
        only:
          - master
          - staging
      on_success: change
      on_failure: always

{'fraction_non_alphanumeric': 0.0873749037721324, 'fraction_numerical': 0.007698229407236336, 'mean_word_length': 2.220570012391574, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '2794027', 'n_tokens_mistral': 868, 'n_tokens_neox': 806, 'n_words': 266}