portfolio/bin/pre-commit.sh
Timothy Farrell 79b9cd734b Use a separate docker nginx image to serve test files
This obviates the need to start/stop a web-server for each package test and paves the way to something we'll need later.
2018-07-25 03:51:59 -05:00

12 lines
184 B
Bash

#!/bin/sh
docker-compose up --detach test-web
nodejs node_modules/lerna/bin/lerna.js run pre-commit \
&& npm run check_code_format
EXIT=$?
docker-compose stop test-web
exit $EXIT