Files
topgrade/ci/script.sh
Roey Darwish Dror 022115e237 Normalize paths in Windows (fix #113) (#116)
While `//?/C:/Users/Someone/config-files` is a valid path, it's not very human friendly.
Such paths are returned from `BaseDirs`. This patch formats them in the traditional way.
2019-01-30 16:00:10 +02:00

22 lines
435 B
Bash

# This script takes care of testing your crate
set -ex
# TODO This is the "test phase", tweak it as you see fit
main() {
cargo fmt --all -- --check
cross clippy --all-targets -- -D warnings
cross clippy --all-targets --all-features -- -D warnings
if [ ! -z $DISABLE_TESTS ]; then
cross test
return
fi
}
# we don't run the "test phase" when doing deploys
if [ -z $TRAVIS_TAG ]; then
main
fi