From ff8c114b8924c4c7ea4f5a48466d1b0a92e5fc35 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 6 Sep 2018 19:35:42 +0200 Subject: [PATCH] Add webhook to circleci --5 --- circle.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 779508a90..8966b9b19 100644 --- a/circle.yml +++ b/circle.yml @@ -53,7 +53,14 @@ jobs: CYPRESS_baseUrl: http://embauche.beta.gouv.fr steps: - run: npm install --save-dev cypress - - run: ./node_modules/.bin/cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759 + - run: | + if ./node_modules/.bin/cypress run --record --key 21660df5-36a5-4c49-b23d-801799b0c759; + then + echo "SUCCESS \o/" + else + curl https://hooks.zapier.com/hooks/catch/3746650/qsp818/; + exit 1; + fi workflows: version: 2