]>
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 | |
429a7822 AC |
21 | - env: TARGET=x86_64-apple-darwin |
22 | ALT=i686-apple-darwin | |
429a7822 | 23 | os: osx |
429a7822 | 24 | |
429a7822 AC |
25 | - env: TARGET=x86_64-unknown-linux-gnu |
26 | ALT=i686-unknown-linux-gnu | |
b1973ba1 | 27 | rust: beta |
50a46f47 | 28 | |
429a7822 AC |
29 | - env: TARGET=x86_64-unknown-linux-gnu |
30 | ALT=i686-unknown-linux-gnu | |
3d858148 | 31 | rust: nightly-2018-03-07 |
102ab97f | 32 | install: |
0971aac7 | 33 | - mdbook --help || cargo install mdbook --force |
50a46f47 AC |
34 | script: |
35 | - cargo test | |
36 | - cargo doc --no-deps | |
c933673e | 37 | - (cd src/doc && mdbook build --dest-dir ../../target/doc) |
429a7822 AC |
38 | |
39 | exclude: | |
40 | - rust: stable | |
41 | ||
42 | before_script: | |
50a46f47 | 43 | - rustup target add $ALT |
429a7822 | 44 | script: |
50a46f47 | 45 | - cargo test |
429a7822 | 46 | |
429a7822 AC |
47 | notifications: |
48 | email: | |
49 | on_success: never | |
1271bb4d | 50 | |
50a46f47 AC |
51 | addons: |
52 | apt: | |
53 | packages: | |
54 | - gcc-multilib |