forked from Jagadeeshftw/grainlify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_contract.bat
More file actions
31 lines (27 loc) · 846 Bytes
/
test_contract.bat
File metadata and controls
31 lines (27 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo Checking if Rust is installed...
rustc --version >nul 2>&1
if %errorlevel% neq 0 (
echo Rust is not installed. Please install Rust first:
echo 1. Download and install Rust from https://www.rust-lang.org/tools/install
echo 2. Or run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs ^| sh
exit /b 1
)
echo Checking if Soroban CLI is installed...
soroban --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing Soroban CLI...
cargo install --locked soroban-cli
)
echo Navigating to contract directory...
cd /d "c:\Users\user\Desktop\GIT\grainlify\contracts\grainlify-core"
echo Building the contract...
cargo build
if %errorlevel% equ 0 (
echo.
echo Contract built successfully!
echo Running tests...
cargo test
) else (
echo Build failed. Please check the errors above.
)