circleci: Run test before deployment

This commit is contained in:
Jonatan Nilsson 2017-12-09 22:00:37 +00:00
parent 4ac565a75b
commit 266faa4552

View file

@ -16,8 +16,12 @@ jobs:
- run: - run:
name: Build docker image name: Build docker image
command: | 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} . 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: - deploy:
name: Push to docker name: Push to docker
command: | command: |