Correctly gen version

This commit is contained in:
Aditya Kulkarni
2020-04-30 17:57:01 -07:00
parent 703192f45b
commit f50b86ed1e
6 changed files with 11 additions and 4 deletions

View File

@@ -25,6 +25,9 @@ set -- "${POSITIONAL[@]}" # restore positional parameters
if [ -z $APP_VERSION ]; then echo "APP_VERSION is not set"; exit 1; fi
# Write the version file
echo "pub const VERSION:&str = \"$APP_VERSION\";" > cli/src/version.rs
# First, do the tests
cd lib && cargo test --release
retVal=$?