From 543326b4c7db7a019c1e3ae68b612b46a47b6c82 Mon Sep 17 00:00:00 2001 From: mplatt Date: Fri, 31 May 2024 16:35:34 +0000 Subject: [PATCH] CI/CD log creation --- .github/workflows/build.yml | 5 ++++- README.md | 2 +- scripts/drivechain_testing.sh | 10 ++++++++++ scripts/integration_testing.sh | 12 ------------ 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f75c93..8a95df1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -121,9 +121,12 @@ jobs: chmod +x ./scripts/drivechain_testing.sh || echo "Function scrript not found, skipping chmod" chmod +x ./scripts/config.sh || echo "Config script not found, skipping chmod" - - name: Run Tests + - name: Run Integration Tests run: ./scripts/integration_testing.sh || echo "Script not found, skipping tests" + - name: Drivechain Testing Output + run: ./scripts/drivechain_testing.sh || echo "Script not found, skipping tests" + upload-artifacts-macos: name: Upload macOS artifacts to releases.drivechain.info runs-on: ubuntu-latest diff --git a/README.md b/README.md index 8ed4aee..6707cc3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Drivechain Launcher + # Drivechain Launcher 🚧 Under construction diff --git a/scripts/drivechain_testing.sh b/scripts/drivechain_testing.sh index 2ea6992..cef12ca 100644 --- a/scripts/drivechain_testing.sh +++ b/scripts/drivechain_testing.sh @@ -6,7 +6,16 @@ export RPC_HOST="127.0.0.1" export RPC_PORT="18443" export CONFIG_FILE="$HOME/.drivechain/drivechain.conf" +startdrivechain +test_mining + +echo -e "\e[32mdrivechain integration testing completed!\e[0m" + +pkill /mainchain/src/drivechaind + +rm -rf ~/.drivechain +rm -rf mainchain function drivechain_rpc { local method=$1 @@ -25,6 +34,7 @@ function drivechain_rpc { } function startdrivechain { + if [ $REINDEX -eq 1 ]; then echo "drivechain will be reindexed" ./mainchain/src/drivechaind --reindex --regtest -conf=$CONFIG_FILE & diff --git a/scripts/integration_testing.sh b/scripts/integration_testing.sh index 9dc2086..18a67e1 100644 --- a/scripts/integration_testing.sh +++ b/scripts/integration_testing.sh @@ -104,15 +104,3 @@ touch ~/.drivechain/drivechain.conf echo "rpcuser=drivechain" >> ~/.drivechain/drivechain.conf echo "rpcpassword=L2L" >> ~/.drivechain/drivechain.conf echo "server=1" >> ~/.drivechain/drivechain.conf - -startdrivechain - -test_mining - - -echo -e "\e[32mdrivechain integration testing completed!\e[0m" - -pkill /mainchain/src/drivechaind - -rm -rf ~/.drivechain -rm -rf mainchain