Clean Rocket crates before testing to avoid versioning/rebuild issues.

This commit is contained in:
Sergio Benitez 2017-01-15 02:33:45 -08:00
parent cf82469c52
commit c6f8b251cb
1 changed files with 5 additions and 1 deletions

View File

@ -62,10 +62,14 @@ check_versions_match "${LIB_DIR}" "${CODEGEN_DIR}" "${CONTRIB_DIR}"
echo ":: Checking for tabs..."
ensure_tab_free
# Update dependencies before running tests.
echo ":: Updating dependencies..."
cargo update
echo ":: Cleaning cached crates..."
cargo clean -p rocket
cargo clean -p rocket_codegen
cargo clean -p rocket_contrib
echo ":: Building and testing libraries..."
build_and_test "${LIB_DIR}"
build_and_test "${CODEGEN_DIR}"