.travis.yml 909 B

1234567891011121314151617181920212223242526272829
  1. language: rust
  2. rust:
  3. - 1.0.0
  4. - beta
  5. - nightly
  6. sudo: false
  7. script:
  8. - cargo build --verbose
  9. - cargo test --verbose
  10. - |
  11. [ $TRAVIS_RUST_VERSION != nightly ] || (
  12. cargo bench &&
  13. cargo test --verbose --manifest-path=num-macros/Cargo.toml
  14. )
  15. - cargo doc
  16. after_success: |
  17. [ $TRAVIS_BRANCH = master ] &&
  18. [ $TRAVIS_PULL_REQUEST = false ] &&
  19. [ $TRAVIS_RUST_VERSION = nightly ] &&
  20. echo '<meta http-equiv=refresh content=0;url=num/index.html>' > target/doc/index.html &&
  21. pip install ghp-import --user $USER &&
  22. $HOME/.local/bin/ghp-import -n target/doc &&
  23. git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  24. env:
  25. global:
  26. secure: NNQ8QgQFZ05OhljZiuCg39AEPU7Yhko/shFlJG1lqYFoFrELibSmBPd7zJsTubufHRddn0ed6IH7qPLnzWJ/cS+dxwAopuqCFzGMOcd/JW8DJgD5PUBA8EVh8x0tNFJVxxdnGac1ufRneWMvMIxH2hO1DMc+8FZBBd7u1DNG1Lk=
  27. notifications:
  28. email:
  29. on_success: never