Commit 8362c077 authored by TonyFord's avatar TonyFord
Browse files

add gitlab stages load_wallet, close_wallet, walletinfo

parent d3dffe91
......@@ -2,6 +2,9 @@ stages:
- build
- start
- create_wallet
- load_wallet
- close_wallet
- walletinfo
- stop
- uninstall
- remove
......@@ -52,7 +55,7 @@ create_wallet:
refs:
- master
variables:
- ( $CMD =~ /create wallet/ && $PASSPHRASE != '' && $PASSWORD != '' )
- $CMD =~ /create wallet/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
......@@ -60,6 +63,53 @@ create_wallet:
script:
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair create --passphrase ${PASSPHRASE} --password ${PASSWORD} --wallet .electrumfair/wallets/${WALLET:-default_wallet}
load_wallet:
stage: load_wallet
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /load wallet/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
script:
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair daemon load_wallet --password ${PASSWORD} --wallet .electrumfair/wallets/${WALLET:-default_wallet}
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair getbalance --wallet .electrumfair/wallets/${WALLET:-default_wallet}
close_wallet:
stage: close_wallet
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /close wallet/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
script:
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair getbalance --wallet .electrumfair/wallets/${WALLET:-default_wallet}
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair daemon close_wallet --wallet .electrumfair/wallets/${WALLET:-default_wallet}
walletinfo:
stage: walletinfo
tags:
- FairCoin.Co
only:
refs:
- master
variables:
- $CMD =~ /walletinfo/
before_script:
- export RUNNER_UID=`id -u`
- export RUNNER_GID=`id -g`
script:
- docker-compose exec -T faircoin ./electrumfair/run_electrumfair daemon status
stop:
stage: stop
tags:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment