Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.14 KB

Minimalist Google Hangout Chats Bitbucket Bot

Codacy Badge

It is a Minimalist Google Hangout Chats Bitbucket Bot. :-)

The minimalist part is very important. We don't want a bloated fully featured bot, we want just the minimum necessary so that our teams can have decent notifications and can act on important events.

Setup virtual environment

pipenv install --ignore-pipfile --dev

Run unit tests

pipenv run python -m pytest --junitxml=test-results/pytest/report.xml -vvs tests --log-cli-level WARNING

Deploy

gcloud beta functions deploy chat-bitbucket-bot \
    --entry-point main \
    --runtime python37 \
    --memory 128MB \
    --timeout 5s \
    --max-instances 3 \
    --trigger-http \
    --allow-unauthenticated \
    --set-env-vars=CHAT_WEBHOOK_URL='<YOUR_CHAT_WEBHOOK_URL>' \
    --region=<YOUR_REGION> \
    --project <YOUR_PROJECT_ID>