mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 11:12:25 +00:00
7a1d8d9481
This commit fills out the functionality of `--lib`, `--test`, `--bin`, `--bench`, and `--example` for the `cargo {test,build,bench}` commands all at once. The support for all of this was introduced long ago, and the flags just weren't exposed at the time.
28 lines
703 B
YAML
28 lines
703 B
YAML
language: rust
|
|
install:
|
|
- sh ./.travis.install.deps.sh
|
|
script:
|
|
- ./configure --local-rust-root=`pwd`/rustc
|
|
- make
|
|
- make test
|
|
- make distcheck
|
|
- make doc
|
|
after_success: |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
[ $(uname -s) = Linux ] &&
|
|
sudo pip install ghp-import &&
|
|
ghp-import -n target/doc &&
|
|
git push -f https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
env:
|
|
global:
|
|
- secure: scGpeetUfba5RWyuS4yt10bPoFAI9wpHEReIFqEx7eH5vr2Anajk6+70jW6GdrWVdUvdINiArlQ3An2DeB9vEUWcBjw8WvuPtOH0tDMoSsuVloPlFD8yn1Ac0Bx9getAO5ofxqtoNg+OV4MDVuGabEesqAOWqURNrBC7XK+ntC8=
|
|
- RUST_TEST_THREADS=1
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
branches:
|
|
only:
|
|
- master
|