From 42978f7c918be6678d847c687b21f06106e18da1 Mon Sep 17 00:00:00 2001 From: Rodrigo Pavano Date: Fri, 5 Jan 2018 01:19:36 -0300 Subject: [PATCH] Testing CI Wooork --- .circleci/config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5225890..4d83028 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,6 @@ version: 2 jobs: build: docker: - # specify the version you desire here - image: circleci/node:7.10 working_directory: ~/api-services @@ -31,3 +30,11 @@ jobs: - run: npm run ci:test - run: npm run ci:coveralls - run: npm run flow check + + - deploy: + command: | + if [ "${CIRCLE_BRANCH}" == "deploy" ]; then + npm install serverless + ./node_modules/serverless/bin/serverless deploy -s staging + fi +