mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
language: rust
|
|
rust: stable
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
matrix:
|
|
include:
|
|
- 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
|
|
|
|
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
|