-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update from cryptogarageinc v0.2.4 + CI * fix: docker image name Co-authored-by: k-matsuzawa <[email protected]>
- Loading branch information
1 parent
b8ec6e6
commit 5c3776b
Showing
32 changed files
with
2,736 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash -u | ||
|
||
# while :; do sleep 10; done | ||
export WORKDIR_ROOT=github | ||
export WORK_DIR=workspace | ||
export WORKDIR_PATH=/${WORKDIR_ROOT}/${WORK_DIR} | ||
|
||
cd /${WORKDIR_ROOT} | ||
if [ ! -d ${WORK_DIR} ]; then | ||
mkdir ${WORK_DIR} | ||
fi | ||
|
||
cd ${WORKDIR_PATH} | ||
rm -rf bitcoind_datadir | ||
rm -rf elementsd_datadir | ||
|
||
mkdir bitcoind_datadir | ||
chmod 777 bitcoind_datadir | ||
# cp /root/.bitcoin/bitcoin.conf bitcoind_datadir/ | ||
cp ./integration_test/bitcoin.conf bitcoind_datadir/ | ||
mkdir elementsd_datadir | ||
chmod 777 elementsd_datadir | ||
# cp /root/.elements/elements.conf elementsd_datadir/ | ||
cp ./integration_test/elements.conf elementsd_datadir/ | ||
|
||
# boot daemon | ||
bitcoind --regtest -datadir=${WORKDIR_PATH}/bitcoind_datadir | ||
bitcoin-cli --regtest -datadir=${WORKDIR_PATH}/bitcoind_datadir ping > /dev/null 2>&1 | ||
while [ $? -ne 0 ] | ||
do | ||
bitcoin-cli --regtest -datadir=${WORKDIR_PATH}/bitcoind_datadir ping > /dev/null 2>&1 | ||
done | ||
echo "start bitcoin node" | ||
|
||
elementsd -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir | ||
elements-cli -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir ping > /dev/null 2>&1 | ||
while [ $? -ne 0 ] | ||
do | ||
elements-cli -chain=liquidregtest -datadir=${WORKDIR_PATH}/elementsd_datadir ping > /dev/null 2>&1 | ||
done | ||
echo "start elements node" | ||
|
||
set -e | ||
|
||
python3 --version | ||
|
||
pip3 install *.whl | ||
pip3 install python-bitcoinrpc | ||
|
||
cd integration_test | ||
|
||
python3 tests/test_bitcoin.py -v | ||
if [ $? -gt 0 ]; then | ||
cd ../.. | ||
exit 1 | ||
fi | ||
|
||
python3 tests/test_elements.py -v | ||
if [ $? -gt 0 ]; then | ||
cd ../.. | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.