Skip to content

Commit

Permalink
Add 'packages/bitcore-wallet-service/' from commit '187788456d7608c87…
Browse files Browse the repository at this point in the history
…9b14b5dd6ce5cff349c0bb5'

git-subtree-dir: packages/bitcore-wallet-service
git-subtree-mainline: 095c8de
git-subtree-split: 1877884
  • Loading branch information
Micah Riggan committed Dec 27, 2018
2 parents 095c8de + 1877884 commit 36138c3
Show file tree
Hide file tree
Showing 124 changed files with 35,608 additions and 0 deletions.
35 changes: 35 additions & 0 deletions packages/bitcore-wallet-service/.circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Javascript Node CircleCI 2.0 configuration file
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
version: 2
jobs:
copay:
docker:
- image: circleci/node:8.12.0
- image: circleci/mongo:4.0.4

working_directory: ~/bws
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm ci
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npx codecov
- store_artifacts:
path: ./test
- store_test_results:
path: ./test

workflows:
version: 2
build_and_test:
jobs:
- copay
1 change: 1 addition & 0 deletions packages/bitcore-wallet-service/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: sPSI9ALVcN1NzwkXUxIMHVCfbWO1XNH9h
36 changes: 36 additions & 0 deletions packages/bitcore-wallet-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Logs
logs
*.log
*.sw*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# Users Environment Variables
.lock-wscript

*.swp
out/
db/*
multilevel/db/*

.idea
44 changes: 44 additions & 0 deletions packages/bitcore-wallet-service/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"bitwise": true,
"camelcase": true,
"curly": true,
"devel": false,
"eqeqeq": true,
"eqnull": false,
"freeze": true,
"funcscope": false,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"maxcomplexity": 10,
"maxdepth": 4,
"maxerr": 99999,
"maxlen": 120,
"maxparams": 4,
"maxstatements": 15,
"mocha": true,
"newcap": true,
"noarg": true,
"node": true,
"noempty": true,
"nonew": true,
"quotmark": "single",
"regexp": true,
"smarttabs": false,
"strict": true,
"trailing": true,
"undef": true,
"unused": true,
"predef": [
"after",
"afterEach",
"before",
"beforeEach",
"describe",
"exports",
"it",
"xit",
"module",
"require"
]
}
27 changes: 27 additions & 0 deletions packages/bitcore-wallet-service/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: node_js
sudo: false
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
node_js:
- '8'
before_script:
- sleep 30 # suggested in https://docs.travis-ci.com/user/database-setup/#mongodb
# - mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'

before_install:
- export CXX="g++-4.8" CC="gcc-4.8"
install:
- npm install
after_success:
- npm run coveralls
services:
- mongodb
22 changes: 22 additions & 0 deletions packages/bitcore-wallet-service/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License

Copyright (c) 2015 BitPay


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
5 changes: 5 additions & 0 deletions packages/bitcore-wallet-service/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.PHONY: test cover
test:
./node_modules/.bin/mocha
cover:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test
Loading

0 comments on commit 36138c3

Please sign in to comment.