From a6ac3b8940cf8faf4376c7dfe9b17c45c7617b2e Mon Sep 17 00:00:00 2001 From: alecmerdler Date: Mon, 9 Jan 2017 11:59:24 -0800 Subject: [PATCH] added npm test to container build --- Dockerfile | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5a8d54fb8..5ad0ad370 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104,6 +104,9 @@ RUN cd grunt && npm install # Run grunt RUN cd grunt && grunt +# Run front-end tests +RUN npm test + # Optimize our images ADD static/img static/img RUN jpegoptim static/img/**/*.jpg diff --git a/package.json b/package.json index 6a6d594ce..36de3d949 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "version": "1.0.0", "scripts": { - "test": "./node_modules/.bin/karma start --browsers PhantomJS", + "test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS", "build": "./node_modules/.bin/webpack --progress -p -v", "watch": "./node_modules/.bin/webpack --watch" },