<commit_before>sudo: false

env:
  global:
    - PATH="${PATH}:${HOME}/.local/bin" AWS_DEFAULT_REGION="eu-central-1"
    - secure: <KEY>
    - secure: <KEY>

install:
  - pip install --user awscli

script:
  - set -o pipefail
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation.json" | jq .
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation-larger-app.json" | jq .
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation-minimal.json" | jq .

after_success:
  - mkdir cfn-to-publish
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation.json" > cfn-to-publish/ecs-baseline.json
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation-larger-app.json" > cfn-to-publish/ecs-larger-app.json
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation-minimal.json" > cfn-to-publish/ecs-minimal.json

deploy:
  provider: s3
  bucket: weaveworks-cfn-public
  skip_cleanup: true
  local_dir: cfn-to-publish
  upload_dir: integrations
  acl: public_read
  on:
    branch: master
  access_key_id:
    secure: <KEY>
  secret_access_key:
    secure: dbXIgLNNvOgEhR1Y9QGAH0fQb+QVbgBLzld0sPNtcVtflRp81tgUV6enIH7EYxS3jlbQtVnu6wsuvy9i58mea+LTJN8hpuP5XfFt8CEDs55lmsqX6WLfCi3zUhl+ykRD3zixMMqZkW2XiDUm5ZtLtvcltrnYbQlWARKPYChr+9z8wrcHAks21a1yr4A/BoDfNFNIFCcPbV4xWH+ejDs+EJfQ3Hf7+E8xkHGb7/43RkY3GrCm/vc2FfprQ4WNNVIfyPRvrgqn0kJR+um/QXLEXQzL0KcNA8UmRmCryUqwgymEpHQMv4WUC/cO0wElLJHrW10tfCy+F6HcSYiYO3748ZG9ouaReTixAikrekSAyLKFmWRVoLQeUx8ZyTqkxJFH5v9uJz4WZxY9vmNuK2L+jhX03LK9FpL+AIgWTVzQ/Jni/48FjZBS46pu/9Kh8EMjeA8Ali/qDzSmG78NQ5LQBGUK2rua/3fenqlG28OwSwOiCe6DnX7TA/YcQvOP15+Y3CQoDytaIVCv8HPQgFG0jPg7869FZeqQV8UPmYViIGGno0E1XQqKfE8tlhrKec8Pz+qEY5pbHzMs8BJ9iTddsgzxhPRfll3QKCq/uxCfyE7JVBEuc/eyBx9sPsQd2n2S1aiGOg6yBObBv89EDjLGQcLTOCS10E1LCfKlRTypzcQ=<commit_msg>Add new template to CI pipeline<commit_after>sudo: false

env:
  global:
    - PATH="${PATH}:${HOME}/.local/bin" AWS_DEFAULT_REGION="eu-central-1"
    - secure: <KEY>
    - secure: <KEY>

install:
  - pip install --user awscli

script:
  - set -o pipefail
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation.json" | jq .
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation-larger-app.json" | jq .
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation-minimal.json" | jq .
  - aws cloudformation validate-template --template-body "file:////${PWD}/aws/ecs/cloudformation-minimal-identiorca.json" | jq .

after_success:
  - mkdir cfn-to-publish
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation.json" > cfn-to-publish/ecs-baseline.json
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation-larger-app.json" > cfn-to-publish/ecs-larger-app.json
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation-minimal.json" > cfn-to-publish/ecs-minimal.json
  - jq ".Description += \" (weaveworks/integrations@${TRAVIS_COMMIT})\"" "aws/ecs/cloudformation-minimal-identiorca.json" > cfn-to-publish/ecs-minimal-identiorca.json

deploy:
  provider: s3
  bucket: weaveworks-cfn-public
  skip_cleanup: true
  local_dir: cfn-to-publish
  upload_dir: integrations
  acl: public_read
  on:
    branch: master
  access_key_id:
    secure: <KEY>
  secret_access_key:
    secure: <KEY>
{'fraction_non_alphanumeric': 0.14301521438450898, 'fraction_numerical': 0.030428769017980636, 'mean_word_length': 4.748807631160572, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 17, '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': '1484384', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1577, 'n_words': 169}