summaryrefslogtreecommitdiff
path: root/scripts/dev/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/deploy.sh')
-rwxr-xr-xscripts/dev/deploy.sh32
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