From 919339173164975c22b191fb1aeb8e04096c22cd Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sun, 15 Aug 2021 23:20:51 +0100 Subject: [PATCH] Makes sense to me to do the testing later --- release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release.sh b/release.sh index 23db2993..7ff20ea3 100755 --- a/release.sh +++ b/release.sh @@ -62,11 +62,6 @@ if [ ! "$NO_COMMIT" = "--no-commit" ] && [ "$(git symbolic-ref --short HEAD)" != exit 1 fi -# Sanity check to make sure the build works -(cd agb && cargo test) -(cd agb-image-converter && cargo test) -(cd agb-macros && cargo test) - # Update the version in Cargo.toml sed -i -e "s/^version = \".*\"/version = \"$VERSION\"/" "$DIRECTORY/Cargo.toml" @@ -86,6 +81,11 @@ else git add agb/Cargo.toml agb/Cargo.lock fi +# Sanity check to make sure the build works +(cd agb && cargo test) +(cd agb-image-converter && cargo test) +(cd agb-macros && cargo test) + if [ ! "$NO_COMMIT" = "--no-commit" ]; then # Commit the Cargo.toml changes git commit -m "Release $PROJECT v$VERSION"