]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Fixup formatting
[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=failure
27     - env: INTEGRATION=futures-rs
28     - env: INTEGRATION=glob
29     - env: INTEGRATION=log
30     - env: INTEGRATION=mdbook
31     - env: INTEGRATION=packed_simd
32     - env: INTEGRATION=rand
33     - env: INTEGRATION=rust-clippy
34     - env: INTEGRATION=rust-semverver
35     - env: INTEGRATION=stdsimd
36     - env: INTEGRATION=tempdir
37   allow_failures:
38     # Doesn't build
39     - env: INTEGRATION=futures-rs
40     # Doesn't build - seems to be because of an option
41     - env: INTEGRATION=packed_simd
42     # Test failure
43     - env: INTEGRATION=rust-clippy
44
45 script:
46   - |
47     if [ -z ${INTEGRATION} ]; then
48       cargo build
49       cargo test
50     else
51       ./ci/integration.sh
52     fi
53
54 after_success:
55 - if [ -z ${INTEGRATION} ]; then travis-cargo coveralls --no-sudo; fi
56
57 before_deploy:
58   # TODO: cross build
59  - cargo build --release --target=x86_64-unknown-linux-gnu
60  - 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
61
62 deploy:
63   provider: releases
64   api_key:
65     secure: "your own encrypted key"
66   file:
67   - rustfmt-x86_64-unknown-linux-gnu.tar.gz
68   on:
69     repo: nrc/rustfmt
70     tags: true
71     condition: "$DEPLOY = LINUX"
72   skip_cleanup: true