File tree Expand file tree Collapse file tree 2 files changed +97
-18
lines changed Expand file tree Collapse file tree 2 files changed +97
-18
lines changed Original file line number Diff line number Diff line change 1+ sudo : false
12language : rust
2-
33rust :
4- - nightly
5- - beta
6- - stable
7-
4+ - 1.22.0 # Two releases back
5+ - stable
6+ - beta
7+ - nightly
88matrix :
99 include :
10- - rust : nightly-2017-10-09
11- env :
12- - CLIPPY_VERS="0.0.165"
13- - CLIPPY_TOOLCHAIN="2017-10-09"
14- install :
15- - cargo +nightly-$CLIPPY_TOOLCHAIN clippy -- --version || travis_wait cargo +nightly-$CLIPPY_TOOLCHAIN install clippy --vers "$CLIPPY_VERS" --force
16- - export PATH=$HOME/.cargo/bin:$PATH
17- script :
18- - cargo +nightly-$CLIPPY_TOOLCHAIN clippy -- -D warnings
10+ - env : RUSTFMT
11+ rust : 1.25.0 # `stable`: Locking down for consistent behavior
12+ install :
13+ - rustup component add rustfmt-preview
14+ script :
15+ - cargo fmt -- --write-mode=diff
16+ - env : RUSTFLAGS="-D warnings"
17+ rust : 1.25.0 # `stable`: Locking down for consistent behavior
18+ install :
19+ script :
20+ - cargo check --tests --all-features
21+ - env : CLIPPY_VERSION="0.0.179"
22+ rust : nightly-2018-01-12
23+ install :
24+ - travis_wait cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
25+ script :
26+ - cargo clippy --all-features -- -D clippy
27+
28+ install :
29+ - rustc -Vv
30+ - cargo -V
31+ - export PATH=$HOME/.cargo/bin:$PATH
1932
2033script :
21- - rustc -Vv
22- - cargo -V
23- - cargo check --verbose
24- - cargo test --verbose
34+ - cargo check --verbose
35+ - cargo check --verbose --no-default-features
36+ - cargo check --verbose --all-features
37+ - cargo test --verbose --all-features
38+
39+ branches :
40+ only :
41+ # Release tags
42+ - /^v\d+\.\d+\.\d+.*$/
43+ - master
44+
45+ cache :
46+ apt : true
47+ cargo : true
48+ before_cache :
49+ # Travis can't cache files that are not readable by "others"
50+ - chmod -R a+r $HOME/.cargo
51+
52+ notifications :
53+ email :
54+ on_success : never
Original file line number Diff line number Diff line change 1+ environment :
2+ global :
3+ RUST_VERSION : stable
4+ # APPVEYOR_CACHE_SKIP_RESTORE: true
5+
6+ matrix :
7+ # Stable channel
8+ - TARGET : i686-pc-windows-msvc
9+ CHANNEL : stable
10+ - TARGET : x86_64-pc-windows-msvc
11+ CHANNEL : stable
12+ # Beta channel
13+ - TARGET : x86_64-pc-windows-msvc
14+ CHANNEL : beta
15+ # Nightly channel
16+ - TARGET : x86_64-pc-windows-msvc
17+ CHANNEL : nightly
18+
19+ install :
20+ - ps : >-
21+ $Env:PATH += ';C:\msys64\usr\bin'
22+ - curl -sSf -o rustup-init.exe https://win.rustup.rs/
23+ - rustup-init.exe -y --default-host %TARGET% --default-toolchain %RUST_VERSION%
24+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
25+ - rustc -Vv
26+ - cargo -V
27+
28+ test_script :
29+ - cargo check --verbose
30+ - cargo check --verbose --no-default-features
31+ - cargo check --verbose --all-features
32+ - cargo test --verbose --all-features
33+
34+ branches :
35+ only :
36+ # Release tags
37+ - /^v\d+\.\d+\.\d+.*$/
38+ - master
39+
40+ cache :
41+ - C:\Users\appveyor\.cargo\registry
42+ - target
43+
44+ notifications :
45+ - provider : Email
46+ on_build_success : false
47+
48+ # Building is done in the test phase, so we disable Appveyor's build phase.
49+ build : false
You can’t perform that action at this time.
0 commit comments