summaryrefslogtreecommitdiff
path: root/scripts/dev/deploy.ps1
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-21 21:33:47 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-21 21:33:47 +0800
commit09d64357180e0797b8dcdcaf14b4d3a634effc29 (patch)
treeb71376b5f4d3d07365edc37957cf21186c80e359 /scripts/dev/deploy.ps1
parent90dcfdd8b81948fa9aabf9ea36761e7d7bc1061b (diff)
Keep compile_info.rs in git and reorder deploy checksdeploy/nightly
Remove compile_info.rs from .gitignore to keep it in version control, preventing test failures when the template hasn't been processed yet. Also reorder deployment script checks to verify git status before running tests, ensuring a clean state before testing begins.
Diffstat (limited to 'scripts/dev/deploy.ps1')
-rw-r--r--scripts/dev/deploy.ps132
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/dev/deploy.ps1 b/scripts/dev/deploy.ps1
index 5332f1d..9774b75 100644
--- a/scripts/dev/deploy.ps1
+++ b/scripts/dev/deploy.ps1
@@ -35,22 +35,6 @@ if (-not (Test-Path $coreLibPath)) {
exit 1
}
-# Test core library
-Write-Host "Testing Core Library `".\..\VersionControl\Cargo.toml`""
-cargo test --manifest-path ..\VersionControl\Cargo.toml --workspace --quiet > $null 2>&1
-if ($LASTEXITCODE -ne 0) {
- Write-Warning "Core library tests failed. Aborting build."
- exit 1
-}
-
-# Test workspace
-Write-Host "Testing Command Line `".\Cargo.toml`""
-cargo test --workspace --quiet > $null 2>&1
-if ($LASTEXITCODE -ne 0) {
- Write-Warning "Workspace tests failed. Aborting build."
- exit 1
-}
-
# Check if main git worktree is clean
$gitStatus = git status --porcelain
if ($gitStatus) {
@@ -67,6 +51,22 @@ if ($coreGitStatus) {
exit 1
}
+# Test core library
+Write-Host "Testing Core Library `".\..\VersionControl\Cargo.toml`""
+cargo test --manifest-path ..\VersionControl\Cargo.toml --workspace --quiet > $null 2>&1
+if ($LASTEXITCODE -ne 0) {
+ Write-Warning "Core library tests failed. Aborting build."
+ exit 1
+}
+
+# Test workspace
+Write-Host "Testing Command Line `".\Cargo.toml`""
+cargo test --workspace --quiet > $null 2>&1
+if ($LASTEXITCODE -ne 0) {
+ Write-Warning "Workspace tests failed. Aborting build."
+ exit 1
+}
+
# Build
$env:FORCE_BUILD=$(Get-Date -Format 'mmss')
Write-Host "Building Command Line `".\Cargo.toml`""