File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ ** /node_modules
Original file line number Diff line number Diff line change
1
+ FROM node:10
2
+ RUN apt-get update
3
+ RUN apt-get install apt-transport-https -y
4
+ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
5
+ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
6
+ RUN apt-get update && apt-get install yarn -y
7
+ RUN apt-get install xvfb -y
8
+ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
9
+ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
10
+ apt-get update -y && apt-get install -y --no-install-recommends google-chrome-stable libgconf-2-4 && \
11
+ # clean
12
+ apt-get clean && rm -rf /var/lib/apt/lists/*
13
+ WORKDIR /project
14
+ COPY ./package.json ./package.json
15
+ COPY ./yarn.lock ./yarn.lock
16
+ RUN yarn install
17
+ COPY ./ ./
18
+ RUN chmod 777 ./docker-entrypoint.sh
19
+ ENTRYPOINT [ "./docker-entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ xvfb-run yarn test " $@ "
Original file line number Diff line number Diff line change 6
6
"homepage" : " https://nklayman.github.io/vue-cli-plugin-electron-builder/" ,
7
7
"scripts" : {
8
8
"test" : " jest" ,
9
+ "test:docker" : " docker build -t vcpeb . && docker run --rm --name vcpeb vcpeb" ,
9
10
"pretest" : " rimraf __tests__/projects/*" ,
10
11
"lint" : " eslint --ignore-pattern projects ./" ,
11
12
"docs:dev" : " vuepress dev docs" ,
You can’t perform that action at this time.
0 commit comments