Skip to content

Commit

Permalink
Merge pull request #143 from Bitcoin-com/stage
Browse files Browse the repository at this point in the history
Finalized v2 Refactor and Semantic Release
  • Loading branch information
cgcardona authored Dec 10, 2018
2 parents 11ba32e + 9072df4 commit d8acc89
Show file tree
Hide file tree
Showing 16 changed files with 23,989 additions and 676 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ test-local-server
coverage
start-my-infra
dist/routes/**
package-lock.json
test-v1
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock = true

14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
language: node_js

node_js:
- "8"

dist: trusty

sudo: required

services:
- docker

script: "npm run test"

after_success:
- npm run coverage

notifications:
slack:
secure: OUK3/iI5CNePVCmOKjcrUiqCDHClew81paGXPo/E4KCYJYDLURZFzPmG70aRxEWJwilN0frmcKmdVqLWt1+yTR1DBjJQr0MT2aOmt/STUb9sRmVs49kHpwh9uAzmAKNp71YW+vkunVv9yfys+N+F8I3ky5DSRtRGA0tiqC9TQo7wM5c/LvZqVloPwhbx0435OUg6hNQJYIJ1bJi8gR33kRq9rH6QlHIPcrzhDugQhIweDZxevHIXNrAtA2alrWC0DMu5CSHWkDrNH9iJ5b7PMl9uA6/TJdeM4lt3NaTBp9oNTr+gORSx9OXatAudqdKwZ6GSj8Gc3CxWpNSgrV7SZ7Z4VCiuYsZB3sMZE+qsLiFqR65MvvSWZrdljQ9hvoAr435JTdXUJjgVenDM++MUZ2R1l2X9MT7rJ6SKJo+ZH4pHQ+rIYzQUv4dO4Ym+lVXaxGC9+yykebctq20e4uQnbX368LpWU+ReRo7AEzz050hKlpl81gEfL9/3vJSHXZsDU2id0f0U/Ce409xtjLf7oOQcs5cDxD77iYJeGvwcmDKgQBZQnzyYQIamozZOdTAeWV5HyIGgdmyn5LBOMaNhqL9ZSCEwj50dsqehqKEafmDtr+scNs+R1x80RrQSu/COZg/Pjo35SFjmTahPWqo2xeNDLUNlGxS1ANBBy6LYZnc=

deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ More info: [developer.bitcoin.com](https://developer.bitcoin.com). Chatroom [htt
Testnet available at [trest.bitcoin.com](https://trest.bitcoin.com)

## Usage
You can also run an instance of REST for your own full node.
You can also run an instance of REST for your own full node

### Prerequesites

Expand Down Expand Up @@ -102,4 +102,4 @@ PORT=3000 BITCOINCOM_BASEURL=http://localhost:3000/api/ RPC_BASEURL=http://local

Finally open `http://localhost:3000/` and confirm you see the GUI

#### Deploy
#### Deploy
2 changes: 1 addition & 1 deletion dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ app.use("/" + v2prefix + "/" + "rawtransactions", rawtransactionsV2.router);
app.use("/" + v2prefix + "/" + "transaction", transactionV2.router);
app.use("/" + v2prefix + "/" + "util", utilV2.router);
app.use("/" + v2prefix + "/" + "dataRetrieval", dataRetrievalV2.router);
app.use("/" + v2prefix + "/" + "payloadCreation", payloadCreationV2);
app.use("/" + v2prefix + "/" + "payloadCreation", payloadCreationV2.router);
// catch 404 and forward to error handler
app.use(function (req, res, next) {
var err = {
Expand Down
Loading

0 comments on commit d8acc89

Please sign in to comment.