-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,38 @@ | ||
set PATH=%PATH%;C:\Users\hal\AppData\Local\Microsoft\WinGet\Links | ||
|
||
REM ------------- mithril ------------- | ||
|
||
SET mithril-tar=mithril-2450.0-windows-x64.tar | ||
echo %mithril-tar% | ||
SET mithril-package=%mithril-tar%.gz | ||
echo %mithril-package% | ||
wget https://github.com/input-output-hk/mithril/releases/download/2450.0/%mithril-package% | ||
7z x .\%mithril-package% | ||
tar xf .\%mithril-tar% | ||
.\mithril-client.exe --version | ||
for /f "delims=" %%i in ('.\mithril-client.exe cdb snapshot list --json ^| jq -r .[0].digest') do set digest=%%i | ||
echo %digest% | ||
.\mithril-client.exe cdb download --download-dir %NODE_DB_DIR% %digest% | ||
move %NODE_DB_DIR%\db\* %NODE_DB_DIR% | ||
ls %NODE_DB_DIR% | ||
|
||
REM ------------- ruby tests ------------- | ||
|
||
cd test\e2e | ||
rmdir state\configs\preprod | ||
md state\node_db\preprod | ||
aws s3 cp s3://hal-team/preprod-20250102.zstd ./preprod-20250102.tar.zst | ||
tar xzf ./preprod-20250102.tar.zst | ||
mv db\* state\node_db\preprod\ | ||
bundle exec rake setup[preprod,%BUILDKITE_BRANCH%] | ||
bundle exec rake display_versions | ||
bundle exec rake start_node_and_wallet[preprod] | ||
bundle exec rake wait_until_node_synced | ||
bundle exec rake spec SPEC_OPTS="-e 'Stake Pools'" | ||
bundle exec rake stop_node_and_wallet[preprod] | ||
|
||
echo "Running Ruby tests" | ||
echo "Setting up preprod environment" | ||
rm -rf state\configs\preprod | ||
REM copy the preprod config from the root config folder instead of deleting the link | ||
|
||
call bundle exec rake setup[preprod,%BUILDKITE_BRANCH%] | ||
echo "Displaying versions" | ||
call bundle exec rake display_versions | ||
echo "Starting node and wallet" | ||
call bundle exec rake start_node_and_wallet[preprod] | ||
echo "Waiting for node to sync" | ||
call bundle exec rake wait_until_node_synced | ||
echo "Running tests" | ||
call bundle exec rake spec SPEC_OPTS="-e 'Stake Pools'" | ||
echo "Stopping node and wallet" | ||
call bundle exec rake stop_node_and_wallet[preprod] |
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