forked from Enet4/dicom-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (37 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: rust
matrix:
include:
- rust: stable
env: CLIPPY=1
- rust: beta
- rust: nightly
env: CLIPPY=1
- rust: stable
env: WASM=1
allow_failures:
- rust: nightly
- env: WASM=1
before_script:
- if [ "$CLIPPY" ]; then
(rustup component add clippy || rustup component add clippy-preview) && CLIPPY_INSTALLED=1 || CLIPPY_INSTALLED=0;
fi
- if [ "$WASM" ]; then
curl https://wasmtime.dev/install.sh -sSf | bash &&
source ~/.bashrc &&
cargo install cargo-wasi &&
rustup target add wasm32-wasi;
fi
script:
- if [ "$CLIPPY_INSTALLED" == 1 ]; then
cargo clippy;
fi
- if [ "$WASM" ]; then
cargo wasi test --workspace
--exclude dcmdump --exclude dicom-dictionary-builder --exclude dicom-scpproxy
--exclude dicom-object --exclude dicom-transfer-syntax-registry
-- --nocapture;
else
cargo test --all;
cargo test --manifest-path encoding/Cargo.toml --no-default-features;
cargo test --manifest-path transfer-syntax-registry/Cargo.toml --no-default-features;
fi