Improve acceptance test notifications

main
Elie 2021-02-16 10:35:11 +01:00
parent 03ecc53e16
commit f8e9d4bc95
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 1 additions and 8 deletions

View File

@ -39,20 +39,13 @@ jobs:
- run: - run:
name: Run acceptance tests name: Run acceptance tests
command: make acc command: make acc
- run:
name: Discord notification
command: |
curl -X POST \
-H "Content-Type: application/json" \
-d "{\"content\": \"✅ Acceptance tests succeeded 🎉\n<${CIRCLE_BUILD_URL}>\" }"\
${DISCORD_WEBHOOK}
- run: - run:
name: Discord notification name: Discord notification
when: on_fail when: on_fail
command: | command: |
curl -X POST \ curl -X POST \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{\"content\": \"❌ Acceptance tests failed\n<${CIRCLE_BUILD_URL}>\" }"\ -d "{\"content\": \"❌ Acceptance tests failed\nSuite: ${ACC_PATTERN}\n<${CIRCLE_BUILD_URL}>\" }"\
${DISCORD_WEBHOOK} ${DISCORD_WEBHOOK}
- store_test_results: - store_test_results:
path: ./ path: ./