forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (64 loc) · 1.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: rust
rust: stable
dist: trusty
git:
depth: 1
matrix:
include:
- name: "rustfmt"
env: TARGET=x86_64-unknown-linux-gnu
rust: stable
addons:
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- cd crates/cargo-test-macro
- cargo fmt --all -- --check
- cd ../crates-io
- cargo fmt --all -- --check
- cd ../resolver-tests
- cargo fmt --all -- --check
- cd ../../
- env: TARGET=x86_64-unknown-linux-gnu
ALT=i686-unknown-linux-gnu
if: branch != master OR type = pull_request
- env: TARGET=x86_64-apple-darwin
ALT=i686-apple-darwin
os: osx
osx_image: xcode9.2
if: branch != master OR type = pull_request
- env: TARGET=x86_64-unknown-linux-gnu
ALT=i686-unknown-linux-gnu
rust: beta
if: branch != master OR type = pull_request
- env: TARGET=x86_64-unknown-linux-gnu
ALT=i686-unknown-linux-gnu
rust: nightly
install:
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.1.7/mdbook-v0.1.7-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
script:
- cargo test --features=deny-warnings || travis_terminate 1
- cargo doc --no-deps || travis_terminate 1
- (cd src/doc && mdbook build --dest-dir ../../target/doc) || travis_terminate 1
if: branch != master OR type = pull_request
- name: resolver tests
rust: stable
before_script: true
script:
- cargo test --manifest-path crates/resolver-tests/Cargo.toml
if: branch != master OR type = pull_request
exclude:
- rust: stable
before_script:
- rustup target add $ALT
- rustup component add clippy || echo "clippy not available"
script:
- cargo test --features=deny-warnings
notifications:
email:
on_success: never
addons:
apt:
packages:
- gcc-multilib