diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-21 21:33:47 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-21 21:33:47 +0800 |
| commit | 09d64357180e0797b8dcdcaf14b4d3a634effc29 (patch) | |
| tree | b71376b5f4d3d07365edc37957cf21186c80e359 /scripts/dev/deploy.sh | |
| parent | 90dcfdd8b81948fa9aabf9ea36761e7d7bc1061b (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.sh')
| -rwxr-xr-x | scripts/dev/deploy.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/dev/deploy.sh b/scripts/dev/deploy.sh index 9ade49d..2bbf042 100755 --- a/scripts/dev/deploy.sh +++ b/scripts/dev/deploy.sh @@ -15,22 +15,6 @@ if [ ! -d "$coreLibPath" ]; then exit 1 fi -# Test core library -echo "Testing Core Library \"../VersionControl/Cargo.toml\"" -cargo test --manifest-path ../VersionControl/Cargo.toml --workspace --quiet > /dev/null 2>&1 -if [ $? -ne 0 ]; then - echo "Core library tests failed. Aborting build." - exit 1 -fi - -# Test workspace -echo "Testing Command Line \"./Cargo.toml\"" -cargo test --workspace --quiet > /dev/null 2>&1 -if [ $? -ne 0 ]; then - echo "Workspace tests failed. Aborting build." - exit 1 -fi - # Check if main git worktree is clean git_status=$(git status --porcelain) if [ -n "$git_status" ]; then @@ -47,6 +31,22 @@ if [ -n "$core_git_status" ]; then exit 1 fi +# Test core library +echo "Testing Core Library \"../VersionControl/Cargo.toml\"" +cargo test --manifest-path ../VersionControl/Cargo.toml --workspace --quiet > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo "Core library tests failed. Aborting build." + exit 1 +fi + +# Test workspace +echo "Testing Command Line \"./Cargo.toml\"" +cargo test --workspace --quiet > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo "Workspace tests failed. Aborting build." + exit 1 +fi + # Build echo "Building Command Line \"./Cargo.toml\"" if FORCE_BUILD=$(date +%s) cargo build --workspace --release --quiet > /dev/null 2>&1; then |
