|
1 | 1 | language: rust |
2 | 2 | sudo: false |
| 3 | +rust: nightly |
3 | 4 |
|
4 | 5 | matrix: |
5 | 6 | include: |
6 | 7 | - name: "miri" |
7 | | - rust: nightly |
8 | | - install: |
9 | | - - rustup component add rust-src |
10 | | - - cargo +nightly install --force --git https://github.com/rust-lang/miri miri |
11 | | - - cargo install xargo |
12 | | - script: |
13 | | - - cargo clean |
14 | | - - cargo +nightly miri test |
15 | | - - rust: 1.29.0 |
16 | | - - rust: stable |
17 | | - - rust: beta |
18 | | - - rust: nightly |
19 | | - - rust: nightly |
20 | | - env: |
21 | | - - FEATURES='nightly' |
| 8 | + env: TARGET=x86_64-unknown-linux-gnu |
| 9 | + script: sh ci/miri.sh |
| 10 | + - name: "rustfmt/clippy" |
| 11 | + env: TARGET=i586-unknown-linux-gnu |
| 12 | + script: sh ci/tools.sh |
| 13 | + - name: "docs" |
| 14 | + env: TARGET=x86_64-unknown-linux-gnu |
| 15 | + script: cargo -vv doc --features nightly,serde,rayon |
| 16 | + deploy: |
| 17 | + provider: pages |
| 18 | + skip-cleanup: true |
| 19 | + github-token: $GITHUB_TOKEN |
| 20 | + local-dir: target/doc |
| 21 | + keep-history: false |
| 22 | + on: |
| 23 | + branch: master |
22 | 24 |
|
23 | | - # test a target without sse2 for raw/generic.rs |
24 | | - - rust: stable |
25 | | - env: |
26 | | - - TARGET=i586-unknown-linux-gnu |
27 | | - addons: |
28 | | - apt: |
29 | | - packages: |
30 | | - - gcc-multilib |
31 | | - install: |
32 | | - - rustup target add $TARGET |
33 | | - script: |
34 | | - - cargo build --verbose --target $TARGET |
35 | | - - cargo test --verbose --target $TARGET |
| 25 | + # Tier 1 targets: |
| 26 | + - name: "x86_64-unknown-linux-gnu" |
| 27 | + env: TARGET=x86_64-unknown-linux-gnu |
| 28 | + - name: "x86_64-unknown-linux-gnu (beta)" |
| 29 | + rust: beta |
| 30 | + env: TARGET=x86_64-unknown-linux-gnu |
| 31 | + - name: "x86_64-unknown-linux-gnu (stable)" |
| 32 | + rust: stable |
| 33 | + env: TARGET=x86_64-unknown-linux-gnu |
| 34 | + - name: "x86_64-unknown-linux-gnu (Rust 1.29.0)" |
| 35 | + rust: 1.31.0 |
| 36 | + env: TARGET=x86_64-unknown-linux-gnu |
| 37 | + - name: "i686-unknown-linux-gnu" |
| 38 | + env: TARGET=i686-unknown-linux-gnu CROSS=1 |
| 39 | + - name: "x86_64-apple-darwin" |
| 40 | + env: TARGET=x86_64-apple-darwin |
| 41 | + os: osx |
| 42 | + osx_image: xcode10 |
| 43 | + - name: "i686-apple-darwin" |
| 44 | + env: TARGET=i686-apple-darwin |
| 45 | + os: osx |
| 46 | + osx_image: xcode10 |
| 47 | + - name: "x86_64-pc-windows-msvc" |
| 48 | + env: TARGET=x86_64-pc-windows-msvc |
| 49 | + os: windows |
| 50 | + - name: "x86_64-pc-windows-gnu" |
| 51 | + env: TARGET=x86_64-pc-windows-gnu CROSS=1 |
| 52 | + - name: "i686-pc-windows-gnu" |
| 53 | + env: TARGET=i686-pc-windows-gnu CROSS=1 |
| 54 | + |
| 55 | + # Tier 2/3 targets: |
| 56 | + - name: "i586-unknown-linux-gnu (no SSE2)" |
| 57 | + env: TARGET=i586-unknown-linux-gnu CROSS=1 |
| 58 | + - name: "armv7-unknown-linux-gnueabihf" |
| 59 | + env: TARGET=armv7-unknown-linux-gnueabihf CROSS=1 |
| 60 | + - name: "aarch64-unknown-linux-gnu" |
| 61 | + env: TARGET=aarch64-unknown-linux-gnu CROSS=1 |
| 62 | + |
| 63 | +install: travis_retry rustup target add "${TARGET}" |
| 64 | +script: sh ci/run.sh |
36 | 65 |
|
37 | 66 | branches: |
38 | 67 | # Don't build these branches |
39 | 68 | except: |
40 | 69 | # Used by bors |
41 | 70 | - trying.tmp |
42 | 71 | - staging.tmp |
43 | | - |
44 | | -before_script: |
45 | | - - if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then rustup component add rustfmt; fi |
46 | | - |
47 | | -script: |
48 | | - - if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then cargo fmt -- --check; fi |
49 | | - |
50 | | - - cargo build --verbose --features "$FEATURES" |
51 | | - - cargo test --verbose --features "$FEATURES" |
52 | | - - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES"; fi |
53 | | - - cargo doc --verbose --features "$FEATURES" |
54 | | - |
55 | | - - cargo build --verbose --features "$FEATURES serde" |
56 | | - - cargo test --verbose --features "$FEATURES serde" |
57 | | - - if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then cargo bench --verbose --features "$FEATURES serde"; fi |
58 | | - - cargo doc --verbose --features "$FEATURES serde" |
|
0 commit comments