|
| 1 | +# Based on the "trust" template v0.1.1 |
| 2 | +# https://github.com/japaric/trust/tree/v0.1.1 |
| 3 | + |
| 4 | +dist: trusty |
1 | 5 | language: rust
|
2 |
| -sudo: false |
3 |
| -before_script: |
4 |
| - - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH |
| 6 | +services: docker |
| 7 | +sudo: required |
| 8 | + |
| 9 | +# TODO Rust builds on stable by default, this can be |
| 10 | +# overridden on a case by case basis down below. |
| 11 | + |
| 12 | +env: |
| 13 | + global: |
| 14 | + # TODO Update this to match the name of your project. |
| 15 | + - CRATE_NAME=trust |
5 | 16 |
|
6 | 17 | matrix:
|
| 18 | + # TODO These are all the build jobs. Adjust as necessary. Comment out what you |
| 19 | + # don't need |
7 | 20 | include:
|
8 |
| - - rust: 1.18.0 |
9 |
| - - rust: stable |
10 |
| - - rust: stable |
| 21 | + # Android |
| 22 | + # - env: TARGET=aarch64-linux-android DISABLE_TESTS=1 |
| 23 | + # - env: TARGET=arm-linux-androideabi DISABLE_TESTS=1 |
| 24 | + - env: TARGET=armv7-linux-androideabi DISABLE_TESTS=1 |
| 25 | + # - env: TARGET=i686-linux-android DISABLE_TESTS=1 |
| 26 | + # - env: TARGET=x86_64-linux-android DISABLE_TESTS=1 |
| 27 | + |
| 28 | + # iOS |
| 29 | + # - env: TARGET=aarch64-apple-ios DISABLE_TESTS=1 |
| 30 | + # os: osx |
| 31 | + - env: TARGET=armv7-apple-ios DISABLE_TESTS=1 |
11 | 32 | os: osx
|
12 |
| - - rust: beta |
13 |
| - - rust: nightly |
14 |
| - script: |
15 |
| - - cargo test --all |
16 |
| - - cargo test --all --features nightly |
17 |
| - - cargo test --all --benches |
18 |
| - - cargo build --all --no-default-features |
19 |
| - - cargo doc --no-deps --features nightly |
| 33 | + # - env: TARGET=armv7s-apple-ios DISABLE_TESTS=1 |
| 34 | + # os: osx |
| 35 | + # - env: TARGET=i386-apple-ios DISABLE_TESTS=1 |
| 36 | + # os: osx |
| 37 | + # - env: TARGET=x86_64-apple-ios DISABLE_TESTS=1 |
| 38 | + # os: osx |
| 39 | + |
| 40 | + # Linux |
| 41 | + # - env: TARGET=aarch64-unknown-linux-gnu |
| 42 | + # - env: TARGET=arm-unknown-linux-gnueabi |
| 43 | + # - env: TARGET=armv7-unknown-linux-gnueabihf |
| 44 | + - env: TARGET=i686-unknown-linux-gnu |
| 45 | + # - env: TARGET=i686-unknown-linux-musl |
| 46 | + - env: TARGET=mips-unknown-linux-gnu |
| 47 | + - env: TARGET=mips64-unknown-linux-gnuabi64 |
| 48 | + # - env: TARGET=mips64el-unknown-linux-gnuabi64 |
| 49 | + # - env: TARGET=mipsel-unknown-linux-gnu |
| 50 | + # - env: TARGET=powerpc-unknown-linux-gnu |
| 51 | + # - env: TARGET=powerpc64-unknown-linux-gnu |
| 52 | + # - env: TARGET=powerpc64le-unknown-linux-gnu |
| 53 | + # - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1 |
| 54 | + - env: TARGET=x86_64-unknown-linux-gnu |
| 55 | + # - env: TARGET=x86_64-unknown-linux-musl |
| 56 | + |
| 57 | + # OSX |
| 58 | + - env: TARGET=i686-apple-darwin |
| 59 | + os: osx |
| 60 | + - env: TARGET=x86_64-apple-darwin |
| 61 | + os: osx |
| 62 | + |
| 63 | + # *BSD |
| 64 | + - env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1 |
| 65 | + - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1 |
| 66 | + - env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1 |
| 67 | + |
| 68 | + # Windows |
| 69 | + # - env: TARGET=x86_64-pc-windows-gnu |
| 70 | + |
| 71 | + # Bare metal |
| 72 | + # These targets don't support std and as such are likely not suitable for |
| 73 | + # most crates. |
| 74 | + # - env: TARGET=thumbv6m-none-eabi |
| 75 | + # - env: TARGET=thumbv7em-none-eabi |
| 76 | + # - env: TARGET=thumbv7em-none-eabihf |
| 77 | + # - env: TARGET=thumbv7m-none-eabi |
| 78 | + |
| 79 | + # Testing other channels |
| 80 | + - env: TARGET=x86_64-unknown-linux-gnu NIGHTLY=1 |
| 81 | + rust: nightly |
| 82 | + - env: TARGET=x86_64-apple-darwin NIGHTLY=1 |
| 83 | + os: osx |
| 84 | + rust: nightly |
| 85 | + |
| 86 | +before_install: |
| 87 | + - set -e |
| 88 | + - rustup self update |
| 89 | + |
| 90 | +install: |
| 91 | + - sh ci/install.sh |
| 92 | + - source ~/.cargo/env || true |
| 93 | + |
20 | 94 | script:
|
21 |
| - - cargo test --all |
22 |
| - - cargo build --all --no-default-features |
23 |
| -after_success: |
24 |
| - - travis-cargo --only nightly doc-upload |
25 |
| -env: |
26 |
| - global: |
27 |
| - secure: "BdDntVHSompN+Qxz5Rz45VI4ZqhD72r6aPl166FADlnkIwS6N6FLWdqs51O7G5CpoMXEDvyYrjmRMZe/GYLIG9cmqmn/wUrWPO+PauGiIuG/D2dmfuUNvSTRcIe7UQLXrfP3yyfZPgqsH6pSnNEVopquQKy3KjzqepgriOJtbyY=" |
| 95 | + - bash ci/script.sh |
| 96 | + |
| 97 | +after_script: set +e |
| 98 | + |
| 99 | +before_deploy: |
| 100 | + - sh ci/before_deploy.sh |
| 101 | + |
| 102 | +cache: cargo |
| 103 | +before_cache: |
| 104 | + # Travis can't cache files that are not readable by "others" |
| 105 | + - chmod -R a+r $HOME/.cargo |
| 106 | + |
| 107 | +# after_success: |
| 108 | +# - travis-cargo --only nightly doc-upload |
| 109 | + |
| 110 | +# env: |
| 111 | +# global: |
| 112 | +# secure: "BdDntVHSompN+Qxz5Rz45VI4ZqhD72r6aPl166FADlnkIwS6N6FLWdqs51O7G5CpoMXEDvyYrjmRMZe/GYLIG9cmqmn/wUrWPO+PauGiIuG/D2dmfuUNvSTRcIe7UQLXrfP3yyfZPgqsH6pSnNEVopquQKy3KjzqepgriOJtbyY=" |
28 | 113 |
|
29 | 114 | notifications:
|
30 | 115 | email:
|
|
0 commit comments