circleci: Run test before deployment
This commit is contained in:
parent
4ac565a75b
commit
266faa4552
1 changed files with 5 additions and 1 deletions
|
@ -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: |
|
||||
|
|
Loading…
Reference in a new issue