mirror of
https://github.com/bheisler/RustaCUDA.git
synced 2026-03-01 02:08:27 +09:00
30 lines
563 B
Bash
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 |