Skip to content

Commit cb0df3b

Browse files
committed
Add chat hook
1 parent 8b61074 commit cb0df3b

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ before_install:
1616
- "wget https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip"
1717
- "unzip chromedriver_linux64.zip"
1818
- "export PATH=$PATH:$PWD"
19+
after_failure:
20+
- tool/report_failure.sh
1921

2022
jobs:
2123
include:

mono_repo.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ travis:
1212
- wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
1313
- unzip chromedriver_linux64.zip
1414
- export PATH=$PATH:$PWD
15+
after_failure:
16+
- tool/report_failure.sh
1517

1618
merge_stages:
1719
- analyzer_and_format

tool/report_failure.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TRAVIS_BUILDS_URI="https://travis-ci.org/dart-lang/build/builds"
2+
if [ "$TRAVIS_EVENT_TYPE" != "pull_request" -a "$TRAVIS_ALLOW_FAILURE" != "true" ]; then
3+
curl -H "Content-Type: application/json" -X POST -d \
4+
"{'text':'Build failed! ${TRAVIS_BUILDS_URI}/${TRAVIS_BUILD_ID}'}" \
5+
"${CHAT_HOOK_URI}"
6+
fi

0 commit comments

Comments
 (0)