]> git.proxmox.com Git - cargo.git/blame - .travis.yml
Auto merge of #6047 - alexcrichton:bump, r=Mark-Simulacrum
[cargo.git] / .travis.yml
CommitLineData
d6871956 1language: rust
429a7822
AC
2rust: stable
3sudo: required
4dist: trusty
cfb69ad2 5
cf71ae0d
AC
6git:
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
13cache:
14 directories:
15 - $HOME/.cargo/bin/
16
96fafda8
AC
17matrix:
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
2797f6c7
E
29 # Minimum Rust supported channel. We enable these to make sure we
30 # continue to work on the advertised minimum Rust version.
31 # However cargo only supports the latest stable so this will get
32 # increased every 6 weeks or so when the first PR to use a new feature.
16bbb950
E
33 - env: TARGET=x86_64-unknown-linux-gnu
34 ALT=i686-unknown-linux-gnu
637e606b 35 rust: 1.28.0
16bbb950 36 script:
2797f6c7
E
37 - rustup toolchain install nightly
38 - cargo +nightly generate-lockfile -Z minimal-versions
39 - cargo -V
06d28ebe 40 - cargo test
16bbb950 41
429a7822
AC
42 - env: TARGET=x86_64-unknown-linux-gnu
43 ALT=i686-unknown-linux-gnu
4eb42cd8 44 rust: nightly
102ab97f 45 install:
0971aac7 46 - mdbook --help || cargo install mdbook --force
50a46f47
AC
47 script:
48 - cargo test
49 - cargo doc --no-deps
c933673e 50 - (cd src/doc && mdbook build --dest-dir ../../target/doc)
429a7822
AC
51
52 exclude:
53 - rust: stable
54
55before_script:
50a46f47 56 - rustup target add $ALT
429a7822 57script:
50a46f47 58 - cargo test
429a7822 59
429a7822
AC
60notifications:
61 email:
62 on_success: never
1271bb4d 63
50a46f47
AC
64addons:
65 apt:
66 packages:
67 - gcc-multilib