|
1 | | -# Based on the "trust" template v0.1.2 |
2 | | -# https://github.com/japaric/trust/tree/v0.1.2 |
3 | | - |
4 | 1 | dist: bionic |
5 | | -language: rust |
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 | | - - CRATE_NAME=newdoc |
15 | | - |
16 | | -matrix: |
17 | | - # TODO These are all the build jobs. Adjust as necessary. Comment out what you |
18 | | - # don't need |
19 | | - include: |
20 | | - # # Android |
21 | | - # - env: TARGET=aarch64-linux-android DISABLE_TESTS=1 |
22 | | - # - env: TARGET=arm-linux-androideabi DISABLE_TESTS=1 |
23 | | - # - env: TARGET=armv7-linux-androideabi DISABLE_TESTS=1 |
24 | | - # - env: TARGET=i686-linux-android DISABLE_TESTS=1 |
25 | | - # - env: TARGET=x86_64-linux-android DISABLE_TESTS=1 |
26 | | - |
27 | | - # # iOS |
28 | | - # - env: TARGET=aarch64-apple-ios DISABLE_TESTS=1 |
29 | | - # os: osx |
30 | | - # - env: TARGET=armv7-apple-ios DISABLE_TESTS=1 |
31 | | - # os: osx |
32 | | - # - env: TARGET=armv7s-apple-ios DISABLE_TESTS=1 |
33 | | - # os: osx |
34 | | - # - env: TARGET=i386-apple-ios DISABLE_TESTS=1 |
35 | | - # os: osx |
36 | | - # - env: TARGET=x86_64-apple-ios DISABLE_TESTS=1 |
37 | | - # os: osx |
38 | 2 |
|
39 | | - # Linux |
40 | | - - env: TARGET=aarch64-unknown-linux-gnu |
41 | | - # - env: TARGET=arm-unknown-linux-gnueabi |
42 | | - # - env: TARGET=armv7-unknown-linux-gnueabihf |
43 | | - # - env: TARGET=i686-unknown-linux-gnu |
44 | | - # - env: TARGET=i686-unknown-linux-musl |
45 | | - # - env: TARGET=mips-unknown-linux-gnu |
46 | | - # - env: TARGET=mips64-unknown-linux-gnuabi64 |
47 | | - # - env: TARGET=mips64el-unknown-linux-gnuabi64 |
48 | | - # - env: TARGET=mipsel-unknown-linux-gnu |
49 | | - # - env: TARGET=powerpc-unknown-linux-gnu |
50 | | - # - env: TARGET=powerpc64-unknown-linux-gnu |
51 | | - # - env: TARGET=powerpc64le-unknown-linux-gnu |
52 | | - # - env: TARGET=s390x-unknown-linux-gnu DISABLE_TESTS=1 |
53 | | - - env: TARGET=x86_64-unknown-linux-gnu |
54 | | - # - env: TARGET=x86_64-unknown-linux-musl |
55 | | - |
56 | | - # OSX |
57 | | - # - env: TARGET=i686-apple-darwin |
58 | | - # os: osx |
59 | | - - env: TARGET=x86_64-apple-darwin |
60 | | - os: osx |
61 | | - |
62 | | - # *BSD |
63 | | - # The FreeBSD build is failing. I'm disabling it for now. |
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 |
| 3 | +language: rust |
| 4 | +rust: |
| 5 | + - stable |
| 6 | + - beta |
| 7 | + - nightly |
| 8 | +jobs: |
| 9 | + allow_failures: |
| 10 | + - rust: nightly |
| 11 | + fast_finish: true |
78 | 12 |
|
79 | | - # # Testing other channels |
80 | | - # - env: TARGET=x86_64-unknown-linux-gnu |
81 | | - # rust: nightly |
82 | | - # - env: TARGET=x86_64-apple-darwin |
83 | | - # os: osx |
84 | | - # rust: nightly |
| 13 | +cache: cargo |
| 14 | +before_cache: |
| 15 | + # Travis can't cache files that are not readable by "others" |
| 16 | + - chmod -R a+r $HOME/.cargo |
85 | 17 |
|
86 | 18 | before_install: |
87 | 19 | - set -e |
88 | 20 | - rustup self update |
89 | | - |
90 | | -install: |
91 | | - - sh ci/install.sh |
92 | | - - source ~/.cargo/env || true |
| 21 | + - rustup component add clippy |
93 | 22 |
|
94 | 23 | script: |
95 | | - - bash ci/script.sh |
| 24 | + - cargo build --verbose |
| 25 | + - cargo test --verbose |
| 26 | + - cargo clippy--verbose |
96 | 27 |
|
97 | 28 | after_script: set +e |
98 | 29 |
|
99 | | -before_deploy: |
100 | | - - sh ci/before_deploy.sh |
101 | | - |
102 | | -deploy: |
103 | | - api_key: |
104 | | - secure: mtCvNJGAukCq1lm2hTTurvV0ockz7OZC61OY9mcx3vpIsAPIefebSq81J8T0hTbyqF7olbKp3ohqmNXmRlzHJfVSFaocnQuxVK7KSvdobjh+wJlp4GlReuXI6gsvlTCdb8IR6VHy1l20v/ONhuzRYFg+pfH53dAeTbXWVXgnDctsoBDwd1uJrI2LYDWwzk1amRSdfIZwHA0iQqqjDbWzpTnpaVyaN2PInYssobVPyWOyMRsnxn0biouKGWF5Y8rd5Q5PhD8uFVSMhBFQWwcviVBsoSgzQimox0crYdCnP/HR5ROElyVNpwnW8M9nFDXuOyXvSAFLWuxQ7dB0QE8chHLKT7m3KJk2YxqxaqrB0VbgzXvJHU8o3Gg2/Qpo5ww1d42AlAbSZurAFMt2IUZQQPvwVmnDjG3pTAlFPb0mCv/vmhfRYgx8n+CbFK9kxsMOgY857X2KwgDfygq7YAp9IYwcOi8zFiNyQnBVhhFiKHcD2ZpBLwJJ/vqLHzh2ZM32xma/oEnpixBgUr8is1JCk2GXHEo4eEOYAYTFx4zNZTaPoyn4yZD6i8BL7zBm3bKS55JfF/LtVMspFLLUJAhoJHzymSCQP1BuBEWjtOmPL00MdSbrFxlFH42xrgaZCWVaK624Or4GocGB3t0DENdQisq6W07p4OBoo8QIAwm49Cs= |
105 | | - file_glob: true |
106 | | - file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* |
107 | | - on: |
108 | | - # TODO Here you can pick which targets will generate binary releases |
109 | | - # In this example, there are some targets that are tested using the stable |
110 | | - # and nightly channels. This condition makes sure there is only one release |
111 | | - # for such targets and that's generated using the stable channel |
112 | | - condition: $TRAVIS_RUST_VERSION = stable |
113 | | - tags: true |
114 | | - provider: releases |
115 | | - skip_cleanup: true |
116 | | - |
117 | | -cache: cargo |
118 | | -before_cache: |
119 | | - # Travis can't cache files that are not readable by "others" |
120 | | - - chmod -R a+r $HOME/.cargo |
121 | | - |
122 | | -branches: |
123 | | - only: |
124 | | - # release tags |
125 | | - - /^v\d+\.\d+\.\d+.*$/ |
126 | | - - main |
127 | | - |
128 | 30 | notifications: |
129 | 31 | email: |
130 | 32 | on_success: never |
0 commit comments