A web service to trigger and compare Zoompf snapshots after a successful Semaphore deploy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
vendor/zoompf
workers
.gitignore
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.md
app.json
app.rb
config.ru
semaphore-zoompf-slack.jpg

README.md

Semaphore Zoompf Webhook

See the Rigor blog for more on how this works.

Deploy

How it works

  1. Deploy this web service (Heroku is an easy platform)
  2. Add the web service as a "Deploy" webhook in your Semaphore project (docs)
  3. $$$

Once configured, this webhook will:

  1. Trigger a new Zoompf snapshot on deploy of your server via Semaphore
  2. Compare the new snapshot to the previous one (compares total defect count)
  3. Post the results in Slack

Slack screenshot

Configuration

  • Set the webhook endpoint to https://your-app-name.herokuapp.com/

  • Set the following environment variables:

# ID of your application in Intercom
INTERCOM_APP_ID

# API key for your Zoompf account
ZOOMPF_API_KEY

# ID of the Zoompf test to trigger snapshots for
ZOOMPF_TEST_ID

# Slack webhook URL to notify when a snapshot is triggered
SLACK_WEBHOOK_URL

# Optional regular expression used to match the deployed server from Semaphore
SEMAPHORE_SERVER_REGEX