fixed Dockerfile npm test
This commit is contained in:
parent
a6ac3b8940
commit
04232f7fd4
1 changed files with 4 additions and 3 deletions
|
@ -94,6 +94,10 @@ ADD static/js/directives/components static/dist/components
|
||||||
RUN npm install -g webpack
|
RUN npm install -g webpack
|
||||||
RUN webpack
|
RUN webpack
|
||||||
|
|
||||||
|
# Run front-end tests
|
||||||
|
ADD karma.conf.js karma.conf.js
|
||||||
|
RUN npm test
|
||||||
|
|
||||||
# Install Grunt
|
# Install Grunt
|
||||||
RUN npm install -g grunt-cli
|
RUN npm install -g grunt-cli
|
||||||
|
|
||||||
|
@ -104,9 +108,6 @@ RUN cd grunt && npm install
|
||||||
# Run grunt
|
# Run grunt
|
||||||
RUN cd grunt && grunt
|
RUN cd grunt && grunt
|
||||||
|
|
||||||
# Run front-end tests
|
|
||||||
RUN npm test
|
|
||||||
|
|
||||||
# Optimize our images
|
# Optimize our images
|
||||||
ADD static/img static/img
|
ADD static/img static/img
|
||||||
RUN jpegoptim static/img/**/*.jpg
|
RUN jpegoptim static/img/**/*.jpg
|
||||||
|
|
Reference in a new issue