Makes sense to me to do the testing later

This commit is contained in:
Gwilym Kuiper 2021-08-15 23:20:51 +01:00
parent 2b1ba6c849
commit 9193391731

View file

@ -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"