mirror of
https://github.com/rust-lang/cargo
synced 2024-08-24 18:15:45 +00:00
53 lines
1.3 KiB
YAML
53 lines
1.3 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
|
|
script:
|
|
- cargo test --features=deny-warnings
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-multilib
|