|
|
@ -9,22 +9,20 @@ os: |
|
|
|
- linux |
|
|
|
- linux |
|
|
|
- osx |
|
|
|
- osx |
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
before_script: |
|
|
|
- cargo build --verbose |
|
|
|
- pip install 'travis-cargo<0.2' --user |
|
|
|
|
|
|
|
- export PATH=$HOME/.local/bin:$PATH # Linux |
|
|
|
|
|
|
|
- export PATH=$HOME/Library/Python/2.7/bin:$PATH # OS X |
|
|
|
|
|
|
|
|
|
|
|
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then |
|
|
|
script: |
|
|
|
cargo test; |
|
|
|
- | |
|
|
|
fi |
|
|
|
travis-cargo build && |
|
|
|
|
|
|
|
travis-cargo --only nightly test && |
|
|
|
|
|
|
|
travis-cargo bench && |
|
|
|
|
|
|
|
travis-cargo --only nightly doc |
|
|
|
|
|
|
|
|
|
|
|
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ] && \ |
|
|
|
after_success: |
|
|
|
[ "$TRAVIS_OS_NAME" = "linux" ] && \ |
|
|
|
- travis-cargo --only nightly doc-upload |
|
|
|
[ "$TRAVIS_PULL_REQUEST" = "false" ] && \ |
|
|
|
|
|
|
|
[ "$TRAVIS_BRANCH" = "master" ]; then |
|
|
|
|
|
|
|
cargo doc; |
|
|
|
|
|
|
|
pip install ghp-import --user $USER; |
|
|
|
|
|
|
|
$HOME/.local/bin/ghp-import -n target/doc; |
|
|
|
|
|
|
|
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages; |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
env: |
|
|
|
global: |
|
|
|
global: |
|
|
|