]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Merge pull request #3220 from topecongiro/bytecount/simd-accel
[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 - seems to be because of an option
39     - env: INTEGRATION=packed_simd
40     # Test failure
41     - env: INTEGRATION=rust-clippy
42
43 script:
44   - |
45     if [ -z ${INTEGRATION} ]; then
46       cargo build
47       cargo test
48     else
49       ./ci/integration.sh
50     fi
51
52 after_success:
53 - if [ -z ${INTEGRATION} ]; then travis-cargo coveralls --no-sudo; fi
54
55 before_deploy:
56   # TODO: cross build
57  - cargo build --release --target=x86_64-unknown-linux-gnu
58  - 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
59
60 deploy:
61   provider: releases
62   api_key:
63     secure: "your own encrypted key"
64   file:
65   - rustfmt-x86_64-unknown-linux-gnu.tar.gz
66   on:
67     repo: nrc/rustfmt
68     tags: true
69     condition: "$DEPLOY = LINUX"
70   skip_cleanup: true