ilp-plugin-xrp-paychan
Version:
Uses payment channels on ripple to do fast ILP transactions between you and a peer. Current in-flight payments are at risk (your peer can choose not to give you claims for them), but are secured against the ledger as soon as you get a claim.
99 lines (83 loc) • 2.5 kB
YAML
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
defaults:
working_directory: ~/repo
docker:
# Use active LTS release: https://github.com/nodejs/Release#release-schedule
- image: circleci/node:8.12
jobs:
test:
<<: *defaults
steps:
- run:
# By default node is installed as root and we are running as circleci
# Using sudo causes wierd issues so we just switch to installing globals in our home dir
name: Setup NPM to make global installs to home directory
command: |
echo "export PATH=$HOME/bin:$PATH" >> $BASH_ENV
npm set prefix=$HOME
- checkout
- restore_cache:
keys:
# when lock file changes, use increasingly general patterns to restore cache
- "node-v1-{{ .Branch }}-{{ checksum \"package-lock.json\" }}"
- "node-v1-{{ .Branch }}-"
- "node-v1-"
- run:
name: Install Greenkeeper-Lockfile
command: npm install -g greenkeeper-lockfile
- run:
name: Update Lockfile (Greenkeeper)
command: greenkeeper-lockfile-update
- run:
name: Install
command: npm install
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm test
- run:
name: Upload Test Coverage to codecov.io
command: npm run codecov
- run:
name: Upload Lockfile (Greenkeeper)
command: greenkeeper-lockfile-upload
- save_cache:
paths:
- node_modules
key: node-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- persist_to_workspace:
root: ~/repo
paths: .
deploy:
<<:
steps:
- attach_workspace:
at: ~/repo
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npm publish
workflows:
version: 2
test-deploy:
jobs:
- test:
filters:
tags:
only: /^v.*/
- deploy:
requires:
- test
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/