Last active
September 10, 2018 13:18
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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