]> git.lizzy.rs Git - rust.git/blob - .travis.yml
move futures-rs integration back into required tests
[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=cargo
23     - env: INTEGRATION=chalk
24     - env: INTEGRATION=crater
25     - env: INTEGRATION=error-chain
26     - env: INTEGRATION=glob
27     - env: INTEGRATION=log
28     - env: INTEGRATION=mdbook
29     - env: INTEGRATION=packed_simd
30     - env: INTEGRATION=rand
31     - env: INTEGRATION=rust-clippy
32     - env: INTEGRATION=rust-semverver
33     - env: INTEGRATION=stdsimd TARGET=x86_64-unknown-linux-gnu
34     - env: INTEGRATION=tempdir
35     - env: INTEGRATION=futures-rs
36   allow_failures:
37     # Doesn't build - seems to be because of an option
38     - env: INTEGRATION=packed_simd
39     # Doesn't build - a temporal build failure due to breaking changes in the nightly compilre
40     - env: INTEGRATION=rust-semverver
41     # can be moved back to include section after https://github.com/rust-lang-nursery/failure/pull/298 is merged
42     - env: INTEGRATION=failure
43
44 script:
45   - |
46     if [ -z ${INTEGRATION} ]; then
47       cargo build
48       cargo test
49     else
50       ./ci/integration.sh
51     fi
52
53 after_success:
54 - if [ -z ${INTEGRATION} ]; then travis-cargo coveralls --no-sudo; fi
55
56 before_deploy:
57   # TODO: cross build
58  - cargo build --release --target=x86_64-unknown-linux-gnu
59  - 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
60
61 deploy:
62   provider: releases
63   api_key:
64     secure: "your own encrypted key"
65   file:
66   - rustfmt-x86_64-unknown-linux-gnu.tar.gz
67   on:
68     repo: nrc/rustfmt
69     tags: true
70     condition: "$DEPLOY = LINUX"
71   skip_cleanup: true