]> git.proxmox.com Git - cargo.git/blame - .travis.yml
separate AppVeyor builder
[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
16bbb950
E
29 - env: TARGET=x86_64-unknown-linux-gnu
30 ALT=i686-unknown-linux-gnu
31 rust: nightly
32 script:
33 - cargo generate-lockfile -Z minimal-versions
34 - cargo check --tests
35
429a7822
AC
36 - env: TARGET=x86_64-unknown-linux-gnu
37 ALT=i686-unknown-linux-gnu
4eb42cd8 38 rust: nightly
102ab97f 39 install:
0971aac7 40 - mdbook --help || cargo install mdbook --force
50a46f47
AC
41 script:
42 - cargo test
43 - cargo doc --no-deps
c933673e 44 - (cd src/doc && mdbook build --dest-dir ../../target/doc)
429a7822
AC
45
46 exclude:
47 - rust: stable
48
49before_script:
50a46f47 50 - rustup target add $ALT
429a7822 51script:
50a46f47 52 - cargo test
429a7822 53
429a7822
AC
54notifications:
55 email:
56 on_success: never
1271bb4d 57
50a46f47
AC
58addons:
59 apt:
60 packages:
61 - gcc-multilib