]> git.lizzy.rs Git - rust.git/blob - .travis.yml
feat: add --manifest-path support to cargo fmt
[rust.git] / .travis.yml
1 sudo: false
2 language: rust
3 rust: nightly
4 os: linux
5 cache:
6  directories:
7   - $HOME/.cargo
8
9 addons:
10   apt:
11     packages:
12     - libcurl4-openssl-dev
13     - libelf-dev
14     - libdw-dev
15
16 matrix:
17   include:
18     - env: DEPLOY=LINUX
19     - env: CFG_RELEASE_CHANNEL=beta
20     - os: osx
21     - env: INTEGRATION=bitflags
22     - env: INTEGRATION=chalk
23     - env: INTEGRATION=crater
24     - env: INTEGRATION=error-chain
25     - env: INTEGRATION=glob
26     - env: INTEGRATION=log
27     - env: INTEGRATION=mdbook
28     - env: INTEGRATION=packed_simd
29     - env: INTEGRATION=rust-semverver
30     - env: INTEGRATION=stdsimd TARGET=x86_64-unknown-linux-gnu
31     - env: INTEGRATION=tempdir
32     - env: INTEGRATION=futures-rs
33   allow_failures:
34     # Using old configuration option
35     - env: INTEGRATION=rand
36     # Doesn't build - keep this in allow_failures as it's fragile to breaking changes of rustc.
37     - env: INTEGRATION=rust-clippy
38     # Doesn't build - seems to be because of an option
39     - env: INTEGRATION=packed_simd
40     # Doesn't build - a temporal build failure due to breaking changes in the nightly compilre
41     - env: INTEGRATION=rust-semverver
42     # can be moved back to include section after https://github.com/rust-lang-nursery/failure/pull/298 is merged
43     - env: INTEGRATION=failure
44     # `cargo test` doesn't finish - disabling for now.
45     # - env: INTEGRATION=cargo
46
47 script:
48   - |
49     if [ -z ${INTEGRATION} ]; then
50       cargo build
51       cargo test
52     else
53       ./ci/integration.sh
54     fi
55
56 after_success:
57 - if [ -z ${INTEGRATION} ]; then travis-cargo coveralls --no-sudo; fi
58
59 before_deploy:
60   # TODO: cross build
61  - cargo build --release --target=x86_64-unknown-linux-gnu
62  - tar czf rustfmt-x86_64-unknown-linux-gnu.tar.gz Contributing.md Design.md README.md -C target/x86_64-unknown-linux-gnu/release/rustfmt rustfmt
63
64 deploy:
65   provider: releases
66   api_key:
67     secure: "your own encrypted key"
68   file:
69   - rustfmt-x86_64-unknown-linux-gnu.tar.gz
70   on:
71     repo: nrc/rustfmt
72     tags: true
73     condition: "$DEPLOY = LINUX"
74   skip_cleanup: true