-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 241541a
Showing
161 changed files
with
41,236 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
version: 2 | ||
jobs: | ||
test: | ||
docker: | ||
- image: circleci/node:10.9.0 | ||
- image: trufflesuite/ganache-cli:v6.1.8 | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-{{ checksum "package.json" }} | ||
- v2-dependencies- | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v2-dependencies-{{ checksum "package.json" }} | ||
- attach_workspace: | ||
at: ~/repo | ||
- run: npm run test | ||
|
||
code_coverage: | ||
docker: | ||
- image: circleci/node:10.9.0 | ||
- image: trufflesuite/ganache-cli:v6.1.8 | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-{{ checksum "package.json" }} | ||
- v2-dependencies- | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v2-dependencies-{{ checksum "package.json" }} | ||
- attach_workspace: | ||
at: ~/repo | ||
- run: | ||
command: npm run coverage | ||
no_output_timeout: 20m | ||
- store_artifacts: | ||
path: ~/repo/coverage.json | ||
destination: coverage.json | ||
- store_artifacts: | ||
path: ~/repo/coverage | ||
destination: coverage | ||
|
||
lint: | ||
docker: | ||
- image: circleci/node:10.9.0 | ||
- image: trufflesuite/ganache-cli:v6.1.8 | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-dependencies-{{ checksum "package.json" }} | ||
- v2-dependencies- | ||
- run: npm install | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v2-dependencies-{{ checksum "package.json" }} | ||
- attach_workspace: | ||
at: ~/repo | ||
- run: npm run lint | ||
|
||
workflows: | ||
version: 2 | ||
build-test-and-deploy: | ||
jobs: | ||
- test | ||
- code_coverage | ||
- lint |
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,3 @@ | ||
node_modules | ||
test | ||
*.DS_Store |
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,16 @@ | ||
allFiredEvents | ||
build | ||
build_ | ||
node_modules | ||
.env | ||
coverage/ | ||
coverage.json | ||
coverageEnv/ | ||
networks/test.json | ||
networks/test-abi.json | ||
networks/coverage.json | ||
networks/coverage-abi.json | ||
networks/development.json | ||
networks/development-abi.json | ||
scTopics | ||
*.DS_Store |
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,16 @@ | ||
{ | ||
"extends": "solium:recommended", | ||
"plugins": [ | ||
"security" | ||
], | ||
"rules": { | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"indentation": [ | ||
"error", | ||
4 | ||
] | ||
} | ||
} |
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,23 @@ | ||
FROM mhart/alpine-node:10.4.1 | ||
|
||
RUN apk update && apk add --no-cache --virtual build-dependencies git python g++ make | ||
RUN yarn global add [email protected] | ||
RUN yarn global add [email protected] | ||
|
||
RUN mkdir -p /deploy/money-market | ||
WORKDIR /deploy/money-market | ||
|
||
# First add deps | ||
ADD ./package.json /deploy/money-market/ | ||
ADD ./yarn.lock /deploy/money-market/ | ||
RUN yarn | ||
|
||
# Then rest of code and build | ||
ADD . /deploy/money-market | ||
|
||
RUN truffle compile | ||
|
||
RUN apk del build-dependencies | ||
RUN yarn cache clean | ||
|
||
CMD while :; do sleep 2073600; done |
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 @@ | ||
All rights reserved, Copyright Compound 2018 |
Oops, something went wrong.