Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed grammar in comments, improved a function name, changed purchase…
… reason in tests (#51) * Added CircleCI config * Use node 8.11.3 * "positives integer" -> "positive integers" * Rename isSignedRequestHasError -> validateSignedRequest The latter is a clearer representation of what the function does. * Changed purchase reason in test cases * Updated IPFS hash/Request hash/signature to reflect new data
- Loading branch information
1 parent
ebd0776
commit d2c541a
Showing
25 changed files
with
114 additions
and
83 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,31 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:8.11.3-stretch | ||
- image: ipfs/go-ipfs:v0.4.16 | ||
- image: trufflesuite/ganache-cli:v6.1.6 | ||
command: [ | ||
"-l", "90000000", | ||
"-m", "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"] | ||
environment: | ||
NODE_ENV: test | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v1-node-modules-cache-{{ checksum "package.json" }}-{{ checksum "packages/requestNetwork.js/package.json" }} | ||
- run: | ||
name: Install depedencies | ||
command: | | ||
npm install . | ||
cd packages/requestNetwork.js/ && npm install . && cd - | ||
- save_cache: | ||
key: v1-node-modules-cache-{{ checksum "package.json" }}-{{ checksum "packages/requestNetwork.js/package.json" }} | ||
paths: | ||
- "node_modules" | ||
- "packages/requestNetwork.js/node_modules" | ||
- run: | ||
name: Deploy test contracts and run Request unit tests | ||
command: | | ||
./node_modules/lerna/bin/lerna.js run --scope @requestnetwork/request-network.js testdeploy | ||
./node_modules/lerna/bin/lerna.js run --scope @requestnetwork/request-network.js test --stream |
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
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
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
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
Oops, something went wrong.