-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Dockerfile, updated circleci config
- Loading branch information
Kate Brune
committed
Dec 31, 2020
1 parent
cc000c2
commit 556177c
Showing
4 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
# test | ||
version: 2.1 | ||
orbs: | ||
node: circleci/[email protected] | ||
jobs: | ||
build-test-and-notify: | ||
executor: | ||
name: node/default | ||
build-and-test: | ||
machine: | ||
image: ubuntu-1604:202007-01 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dependencies | ||
command: npm install | ||
name: Build | ||
command: docker build -t moodqueue . | ||
- run: | ||
name: "Unit Test" | ||
command: npm test --collectCoverage=true --max-workers=1 | ||
environment: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
name: Unit Test | ||
command: docker run -e CI=true moodqueue yarn test | ||
- store_artifacts: | ||
path: coverage | ||
workflows: | ||
build: | ||
jobs: | ||
- build-test-and-notify | ||
- build-and-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# base image | ||
FROM node:alpine | ||
|
||
WORKDIR /usr/src | ||
|
||
COPY package.json . | ||
ENV NODE=ENV=ci | ||
|
||
RUN yarn install | ||
|
||
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters