Skip to content

Commit

Permalink
Initial public release
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesgm committed Sep 26, 2018
0 parents commit 241541a
Show file tree
Hide file tree
Showing 161 changed files with 41,236 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .circleci/config.yml
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
test
*.DS_Store
16 changes: 16 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions .soliumignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
16 changes: 16 additions & 0 deletions .soliumrc.json
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
]
}
}
23 changes: 23 additions & 0 deletions Dockerfile
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
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All rights reserved, Copyright Compound 2018
Loading

0 comments on commit 241541a

Please sign in to comment.