You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/script/ci/send_slack_notification.sh

8 lines
314 B

ci tests (#15378) * add google cloud build files for ci * add github workflow for NEWS.md check * update gitignore to ignore docker files and related files * adapt tests for the new ci environment on GCB * update config and ci script to run on the new ci environment * changing python requirements to work with pg11 * Commenting federated tables local commands * split big tests into smaller parts * remove disabled tests * adjust cloud build timeouts * Divide user tests by common concept(ish) * remove useless redis test code * add slack notification on master build failure * add cloudbuild file for postgres 12 tests * add new tests to makefile * split user migration tests * extract common logic to a module * refactor user specs * fix user migration tests * remove some silent errors and warnings in specs * update invalidation parameters for tests and development * reduce noise in logs * deleted spec that has been pending for ages * moar trash messages * avoid some race conditions * reorder tests * extract refactored behavior to a different spec file * remove likes specs * regroup tests * reorder tests * reset order from last run in CI * avoid repeat ports for file server * avoid race condition * avoid tests to fail due to dependent users * Remove .git from cartodb before starting compose * we don't need to start builder for the tests * reorganize test * no need to destroy account types * increase statement timeout for carto_db_test * Fix redirection and define TRASH_MESSAGES once * improve test tear down * avoid global tear down in CI * update cloudbuild for pg12 Co-authored-by: Alberto Hernández <albertoh@cartodb.com> Co-authored-by: Esther Lozano <esloho@gmail.com> Co-authored-by: Alberto Romeu <alrocar@users.noreply.github.com>
5 years ago
#!/bin/bash
CHANNEL=C03474FL3
if [ $BRANCH_NAME == "master" ] && ! [ -z $BUILD_ID ]; then
MSG="Cartodb master testing $BUILD_ID has failed :sadpanda:"
echo $MSG
curl -F text="$MSG" -F channel=$CHANNEL -F as_user=false -H "Authorization: Bearer $SLACK_TOKEN" -X POST https://slack.com/api/chat.postMessage
fi