.travis.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. (for feature in '' bigint rational complex; do
  12. cargo test --verbose --no-default-features --features="$feature" || exit 1
  13. done)
  14. - |
  15. [ $TRAVIS_RUST_VERSION != nightly ] || (
  16. cargo bench &&
  17. cargo test --verbose --manifest-path=num-macros/Cargo.toml
  18. )
  19. - cargo doc
  20. after_success: |
  21. [ $TRAVIS_BRANCH = master ] &&
  22. [ $TRAVIS_PULL_REQUEST = false ] &&
  23. [ $TRAVIS_RUST_VERSION = nightly ] &&
  24. echo '<meta http-equiv=refresh content=0;url=num/index.html>' > target/doc/index.html &&
  25. pip install ghp-import --user $USER &&
  26. $HOME/.local/bin/ghp-import -n target/doc &&
  27. git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
  28. env:
  29. global:
  30. secure: NNQ8QgQFZ05OhljZiuCg39AEPU7Yhko/shFlJG1lqYFoFrELibSmBPd7zJsTubufHRddn0ed6IH7qPLnzWJ/cS+dxwAopuqCFzGMOcd/JW8DJgD5PUBA8EVh8x0tNFJVxxdnGac1ufRneWMvMIxH2hO1DMc+8FZBBd7u1DNG1Lk=
  31. notifications:
  32. email:
  33. on_success: never