Improve acceptance test notifications
parent
03ecc53e16
commit
f8e9d4bc95
|
@ -39,20 +39,13 @@ jobs:
|
|||
- run:
|
||||
name: Run acceptance tests
|
||||
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:
|
||||
name: Discord notification
|
||||
when: on_fail
|
||||
command: |
|
||||
curl -X POST \
|
||||
-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}
|
||||
- store_test_results:
|
||||
path: ./
|
||||
|
|
Loading…
Reference in New Issue