.travis.yml 988 B

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. openssl aes-256-cbc -K $encrypted_9e86330b283d_key -iv $encrypted_9e86330b283d_iv -in .travis/deploy.enc -out ./travis/deploy -d &&
  25. chmod 600 ./travis/deploy &&
  26. ssh-add ./travis/deploy &&
  27. pip install ghp-import --user $USER &&
  28. cp doc/index.html target/doc/ &&
  29. $HOME/.local/bin/ghp-import -n target/doc &&
  30. git push -qf ssh://[email protected]/${TRAVIS_REPO_SLUG}.git gh-pages
  31. notifications:
  32. email:
  33. on_success: never