From 266faa4552b52521f3930f61eb6a4309882b8ad9 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sat, 9 Dec 2017 22:00:37 +0000 Subject: [PATCH] circleci: Run test before deployment --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ec3a22d..c14c849 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,8 +16,12 @@ jobs: - run: name: Build docker image command: | - docker build -t test . + docker build -t nfp-test . docker build --build-arg NODE=production -t ${di}:build_${CIRCLE_BUILD_NUM} -t ${di}:${CIRCLE_SHA1} -t ${di}:${dtag} . + - run: + name: Run tests + command: | + docker run nfp-test npm run test - deploy: name: Push to docker command: |