Skip to content

Commit

Permalink
CI/CD log creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mplatt8 committed May 31, 2024
1 parent 89283be commit 543326b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Drivechain Launcher
# Drivechain Launcher

🚧 Under construction

Expand Down
10 changes: 10 additions & 0 deletions scripts/drivechain_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 &
Expand Down
12 changes: 0 additions & 12 deletions scripts/integration_testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 543326b

Please sign in to comment.