<commit_before>sudo: required

env:
  global:
  - REPO=depost/init-aws-swarm
  - COMMIT=${TRAVIS_COMMIT::8}
  - secure: <KEY>
  - secure: <KEY>

services:
- docker

before_script:
- export TZ=Pacific/Auckland
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi`

branches:
  only:
  - master

script:
- docker build -t init-aws-swarm -t $REPO:$COMMIT -t $REPO:$TRAVIS_BUILD_NUMBER -t $REPO:$TAG -f Dockerfile .

after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push $REPO<commit_msg>Only push travis build numbers when master is built<commit_after>sudo: required

env:
  global:
  - REPO=depost/init-aws-swarm
  - COMMIT=${TRAVIS_COMMIT::8}
  - secure: <KEY>
  - secure: <KEY>

services:
- docker

before_script:
- export TZ=Pacific/Auckland
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi`

branches:
  only:
  - master

script:
- docker build -t $REPO:$TAG -f Dockerfile .

after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push $REPO:$TAG
- if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then
  docker tag $REPO:$TAG $REPO:$TRAVIS_BUILD_NUMBER
  docker push $REPO:$TRAVIS_BUILD_NUMBER
  fi
{'fraction_non_alphanumeric': 0.14992721979621543, 'fraction_numerical': 0.001455604075691412, 'mean_word_length': 4.268199233716475, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6360724', 'n_tokens_mistral': 577, 'n_tokens_neox': 544, 'n_words': 123}