make travisbuddy only to comment on failure

pull/5164/head
Medya Gh 2019-08-21 15:00:00 -07:00
parent 3b0ae8371d
commit bcef943bec
3 changed files with 4 additions and 3 deletions

View File

@ -19,4 +19,5 @@ script:
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
webhooks: https://www.travisbuddy.com/
webhooks: https://www.travisbuddy.com/
on_success: never # travisbuddy don't comment on successfull

View File

@ -34,7 +34,7 @@ func TestIsValidEnv(t *testing.T) {
for _, tc := range testCases {
t.Run(tc.env, func(t *testing.T) {
got := isValidEnv(tc.env)
if got == tc.want { // Making it fail just to see travisbuddy work
if got != tc.want {
t.Errorf("isValidEnv(\"%v\") got %v; want %v", tc.env, got, tc.want)
}

View File

@ -343,7 +343,7 @@ func TestOptionallyHttpsFormattedUrlString(t *testing.T) {
t.Errorf("\nhttpsFormattedURLString, Expected %v \nActual: %v \n\n", test.expectedHTTPSFormattedURLString, httpsFormattedURLString)
}
if isHTTPSchemedURL == test.expectedIsHTTPSchemedURL {
if isHTTPSchemedURL != test.expectedIsHTTPSchemedURL {
t.Errorf("\nisHTTPSchemedURL, Expected %v \nActual: %v \n\n",
test.expectedHTTPSFormattedURLString, httpsFormattedURLString)
}