Skip to content

Instantly share code, notes, and snippets.

@mettamatt
Last active September 10, 2018 13:18
Show Gist options
  • Save mettamatt/2da5ded57ac72ca0b8582b3a1e4940d1 to your computer and use it in GitHub Desktop.
Save mettamatt/2da5ded57ac72ca0b8582b3a1e4940d1 to your computer and use it in GitHub Desktop.
Integration with tenon.io on https://tugboat.qa - install `jq` and `curl` out to tenon.
services:
php:
image: tugboatqa/php:7-apache
commands:
init:
- apt-get update
- apt-get install -y jq
build:
# Tenon Integration
- touch results.json
- curl -d "url=${TUGBOAT_PREVIEW_URL}&key=${TENON_API}" -H Content-Type:application/x-www-form-urlencoded -H Cache-Control:no-cache -X POST https://tenon.io/api/ > results.json
- "jq '{Summary: [.resultSummary .tests], title: .resultSet[] .errorTitle, description: .resultSet[] .errorDescription, snippet: .resultSet[] .errorSnippet, ref: .resultSet[] .ref, resultTitle: .resultSet[] .resultTitle, xpath: .resultSet[] .xpath}' results.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment