added npm test to container build
This commit is contained in:
parent
72151dc162
commit
a6ac3b8940
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Reference in a new issue