Files
RustaCUDA/ci/script.sh
2020-07-03 20:23:49 -06:00

30 lines
563 B
Bash

set -ex
export CARGO_INCREMENTAL=0
if [ "$DOCS" = "yes" ]; then
cargo clean
cargo doc --all --no-deps
travis-cargo doc-upload || true
elif [ "$RUSTFMT" = "yes" ]; then
cargo fmt --all -- --check
elif [ "$CLIPPY" = "yes" ]; then
cargo clippy --all -- -D warnings
else
cargo build
cargo build --tests
cargo build --examples
cd rustacuda_core
cargo build
cargo build --tests
cargo build --examples
cd ..
cd rustacuda_derive
cargo build
cargo build --tests
cargo build --examples
cd ..
fi