]>
Commit | Line | Data |
---|---|---|
d6871956 | 1 | language: rust |
429a7822 AC |
2 | rust: stable |
3 | sudo: required | |
4 | dist: trusty | |
cfb69ad2 | 5 | |
cf71ae0d AC |
6 | git: |
7 | depth: 1 | |
8 | ||
d70a3b1e MG |
9 | # Using 'cache: cargo' to cache target/ and all of $HOME/.cargo/ |
10 | # doesn't work well: the cache is large and it takes several minutes | |
11 | # to move it to and from S3. So instead we only cache the mdbook | |
12 | # binary. | |
0971aac7 BE |
13 | cache: |
14 | directories: | |
15 | - $HOME/.cargo/bin/ | |
16 | ||
96fafda8 AC |
17 | matrix: |
18 | include: | |
429a7822 AC |
19 | - env: TARGET=x86_64-unknown-linux-gnu |
20 | ALT=i686-unknown-linux-gnu | |
75494c30 | 21 | if: branch != master OR type = pull_request |
429a7822 AC |
22 | - env: TARGET=x86_64-apple-darwin |
23 | ALT=i686-apple-darwin | |
429a7822 | 24 | os: osx |
20b5ca3d | 25 | osx_image: xcode9.2 |
75494c30 | 26 | if: branch != master OR type = pull_request |
429a7822 | 27 | |
429a7822 AC |
28 | - env: TARGET=x86_64-unknown-linux-gnu |
29 | ALT=i686-unknown-linux-gnu | |
b1973ba1 | 30 | rust: beta |
75494c30 | 31 | if: branch != master OR type = pull_request |
50a46f47 | 32 | |
2797f6c7 E |
33 | # Minimum Rust supported channel. We enable these to make sure we |
34 | # continue to work on the advertised minimum Rust version. | |
35 | # However cargo only supports the latest stable so this will get | |
36 | # increased every 6 weeks or so when the first PR to use a new feature. | |
16bbb950 E |
37 | - env: TARGET=x86_64-unknown-linux-gnu |
38 | ALT=i686-unknown-linux-gnu | |
0b55e9e5 | 39 | rust: 1.31.0 |
16bbb950 | 40 | script: |
2797f6c7 E |
41 | - rustup toolchain install nightly |
42 | - cargo +nightly generate-lockfile -Z minimal-versions | |
43 | - cargo -V | |
06d28ebe | 44 | - cargo test |
75494c30 | 45 | if: branch != master OR type = pull_request |
16bbb950 | 46 | |
429a7822 AC |
47 | - env: TARGET=x86_64-unknown-linux-gnu |
48 | ALT=i686-unknown-linux-gnu | |
4eb42cd8 | 49 | rust: nightly |
102ab97f | 50 | install: |
0971aac7 | 51 | - mdbook --help || cargo install mdbook --force |
50a46f47 AC |
52 | script: |
53 | - cargo test | |
54 | - cargo doc --no-deps | |
c933673e | 55 | - (cd src/doc && mdbook build --dest-dir ../../target/doc) |
75494c30 | 56 | if: branch != master OR type = pull_request |
429a7822 AC |
57 | |
58 | exclude: | |
59 | - rust: stable | |
60 | ||
61 | before_script: | |
50a46f47 | 62 | - rustup target add $ALT |
429a7822 | 63 | script: |
50a46f47 | 64 | - cargo test |
429a7822 | 65 | |
429a7822 AC |
66 | notifications: |
67 | email: | |
68 | on_success: never | |
1271bb4d | 69 | |
50a46f47 AC |
70 | addons: |
71 | apt: | |
72 | packages: | |
73 | - gcc-multilib |