From ffbca40950f59f879d43937f188a54828e2cb58d Mon Sep 17 00:00:00 2001 From: levithomason Date: Fri, 2 Oct 2015 20:10:24 -0500 Subject: [PATCH 1/2] add wercker.yml --- wercker.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 wercker.yml diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000000..e447595e71 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,40 @@ +# This references the default nodejs container from +# the Docker Hub: https://registry.hub.docker.com/_/node/ +# If you want Nodesource's container you would reference nodesource/node +# Read more about containers on our dev center +# http://devcenter.wercker.com/docs/containers/index.html +box: node +# This is the build pipeline. Pipelines are the core of wercker +# Read more about pipelines on our dev center +# http://devcenter.wercker.com/docs/pipelines/index.html + +# You can also use services such as databases. Read more on our dev center: +# http://devcenter.wercker.com/docs/services/index.html +# services: + # - postgres + # http://devcenter.wercker.com/docs/services/postgresql.html + + # - mongodb + # http://devcenter.wercker.com/docs/services/mongodb.html +build: + # The steps that will be executed on build + # Steps make up the actions in your pipeline + # Read more about steps on our dev center: + # http://devcenter.wercker.com/docs/steps/index.html + steps: + # A step that executes `npm install` command + - npm-install + # A step that executes `npm test` command + - npm-test + + # A custom script step, name value is used in the UI + # and the code value contains the command that get executed + - script: + name: echo nodejs information + code: | + echo "node version $(node -v) running" + echo "npm version $(npm -v) running" + + after-steps: + - slack-notifier: + url: https://hooks.slack.com/services/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 From 825e09ccc3e15c48f7c149355061a4e3f63640d8 Mon Sep 17 00:00:00 2001 From: levithomason Date: Fri, 2 Oct 2015 20:12:49 -0500 Subject: [PATCH 2/2] notify on fail only --- wercker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/wercker.yml b/wercker.yml index e447595e71..02054c0a32 100644 --- a/wercker.yml +++ b/wercker.yml @@ -38,3 +38,4 @@ build: after-steps: - slack-notifier: url: https://hooks.slack.com/services/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 + notify_on: "failed"