The only supported CI is Github Action. Please use this instead https://github.com/vulpemventures/nigiri-github-action
Travis and Github Action template for adding 🍣 Nigiri Bitcoin to your CI pipeline.
You can spin up a regtest
development box in any Travis pipeline by running
curl https://travis.nigiri.network | bash
NOTICE: You'll need to enable docker
Create a .travis.yml
in your root folder and add the installer script in the before_install
step
services:
- docker
before_install:
- curl https://travis.nigiri.network | bash
install:
- docker-compose up -d
script:
- docker ps -a
# Get all blocks in Bitcoin
- curl http://localhost:3000/blocks
# Get the current block height in Liquid
- curl http://localhost:3001//blocks/tip/height
# Get some Liquid Bitcoins with faucet
- curl -X POST --data '{"address":"2MsnWskyHaHvcZUHA4gnR3G95EnUmZQjzM8"}' http://localhost:3001/faucet`
# Push raw TX with automatic mining
- curl -X POST --data `xxx` http://localhost:3001/tx`
after_script:
- docker-compose down
name: Nigiri pipeline
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Install Nigiri
run: |
mkdir ~/.nigiri; cd ~/.nigiri
curl https://travis.nigiri.network | bash; cd
docker-compose -f ~/.nigiri/docker-compose.yml up -d
-
Electrs
- REST
localhost:3000
- Faucet
localhost:3000/faucet
- REST
-
Electrs for Liquid
- REST
localhost:3001
- Faucet
localhost:3001/faucet
- REST
-
Bitcoin
- RPC host:port
localhost:18443
- RPC user
admin1
- RPC password
123
- RPC host:port
-
Liquid
- RPC host:port
localhost:18884
- RPC user
admin1
- RPC password
123
- RPC host:port
Full documentation of Electrs REST API