-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
63 lines (57 loc) · 1.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: rust
sudo: false
cache: false
os:
- linux
- windows
- osx
rust:
- stable
- beta
- nightly
- 1.13.0
- 1.19.0
- 1.20.0
- 1.21.0
- 1.22.0
- 1.25.0
- 1.26.0
- 1.27.0
- 1.28.0
- 1.31.0
- 1.34.0
- 1.36.0
script:
- cd "${TRAVIS_BUILD_DIR}/random-trait"
- cargo build --verbose
- cargo test --verbose
- if [ ${TRAVIS_RUST_VERSION} == "stable" ]; then cargo test --features=doc-comment; fi
- cd "${TRAVIS_BUILD_DIR}/random-fast-rng"
- cargo build --verbose
- cargo test --verbose
- if [ ${TRAVIS_RUST_VERSION} == "stable" ]; then cargo test --features=doc-comment; fi
before_script:
- if [ ${TRAVIS_RUST_VERSION} == "stable" ]; then
cd "${TRAVIS_BUILD_DIR}/random-trait"
rustup component add clippy-preview rustfmt;
cargo fmt --all -- --check;
cargo clippy --all-targets --all-features -- -Dwarnings -Aclippy::transmute_int_to_float -Aclippy::new-without-default;
cd "${TRAVIS_BUILD_DIR}/random-fast-rng"
rustup component add clippy-preview rustfmt;
cargo fmt --all -- --check;
cargo clippy --all-targets --all-features -- -Dwarnings -Aclippy::transmute_int_to_float -Aclippy::new-without-default;
fi
# - if [ ${TRAVIS_RUST_VERSION} == "nightly" ]; then
# cd "${TRAVIS_BUILD_DIR}/random-trait"
# rustup component add miri;
# cargo miri setup;
# cargo miri test -- -- -Zunstable-options --exclude-should-panic;
#
# cd "${TRAVIS_BUILD_DIR}/random-fast-rng"
# rustup component add miri;
# cargo miri setup;
# cargo miri test -- -- -Zunstable-options --exclude-should-panic;
# fi
notifications:
email:
on_success: never