Shuts down and cleans up docker containers after tests run

This commit is contained in:
Aaron Louie 2020-02-07 10:23:57 -05:00
parent 3055c58e17
commit 44bf6557c6
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"test:once": "ng test --code-coverage --watch=false",
"lint": "ng lint",
"e2e": "./node_modules/protractor/bin/webdriver-manager update && ng e2e",
"e2e:with-wf": "npm run e2e-wf && ng e2e",
"e2e:with-wf": "npm run e2e-wf && ng e2e && npm run e2e-wf:stop && npm run e2e-wf:clean",
"e2e-wf:stop": "docker stop db || true && docker stop backend || true",
"e2e-wf:clean": "docker system prune -f && cd docker && docker-compose rm -f -v -s && cd ..",
"e2e-wf:build": "cd docker && docker-compose pull && docker-compose build --no-cache && cd ..",