<commit_before>language: python

python: 3.6

script: 
    - "python main.py"
    - "./plan.sh"

before_deploy:
    - "./build.sh"
    - curl -fSL "https://releases.hashicorp.com/terraform/0.10.2/terraform_0.10.2_linux_amd64.zip" -o terraform.zip
    - sudo unzip terraform.zip -d /opt/terraform
    - sudo ln -s /opt/terraform/terraform /usr/bin/terraform
    - rm -f terraform.zip

deploy:
    provider: lambda
    handler_name: "handler"
    module_name: "main"
    runtime: "python3.6"
    region: "us-east-1"
    function_name: "continuous_lambda"
    zip: lambda.zip
    publish: true
    role: "arn:aws:iam::578594301922:role/continuous_lambda_role"
    secret_access_key: $AWS_SECRET_ACCESS_KEY
    access_key_id: $AWS_ACCESS_KEY_ID<commit_msg>Move terraform installation to another stage<commit_after>language: python

python: 3.6

before_install:
    - curl -fSL "https://releases.hashicorp.com/terraform/0.10.2/terraform_0.10.2_linux_amd64.zip" -o terraform.zip
    - sudo unzip terraform.zip -d /opt/terraform
    - sudo ln -s /opt/terraform/terraform /usr/bin/terraform
    - rm -f terraform.zip

script: 
    - "python main.py"
    - "./plan.sh"

before_deploy:
    - "./build.sh"

deploy:
    provider: lambda
    handler_name: "handler"
    module_name: "main"
    runtime: "python3.6"
    region: "us-east-1"
    function_name: "continuous_lambda"
    zip: lambda.zip
    publish: true
    role: "arn:aws:iam::578594301922:role/continuous_lambda_role"
    secret_access_key: $AWS_SECRET_ACCESS_KEY
    access_key_id: $AWS_ACCESS_KEY_ID
{'fraction_non_alphanumeric': 0.12306701030927836, 'fraction_numerical': 0.03479381443298969, 'mean_word_length': 3.174731182795699, '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': '284213', 'n_tokens_mistral': 621, 'n_tokens_neox': 597, 'n_words': 107}