Matthew Maurer | 5016934 | 2020-06-02 11:15:34 -0700 | [diff] [blame] | 1 | language: rust |
| 2 | rust: |
| 3 | - 1.24.0 |
| 4 | - stable |
| 5 | os: linux |
| 6 | script: |
| 7 | - cargo build --verbose |
| 8 | - | |
| 9 | if [ $TRAVIS_RUST_VERSION = stable ]; then cargo test --verbose || travis_terminate 1; fi |
| 10 | - cargo doc |
| 11 | after_success: | |
| 12 | [ $TRAVIS_RUST_VERSION = stable ] && |
| 13 | [ $TRAVIS_BRANCH = master ] && |
| 14 | [ $TRAVIS_PULL_REQUEST = false ] && |
| 15 | echo '<meta http-equiv=refresh content=0;url=unicode_segmentation/index.html>' > target/doc/index.html && |
| 16 | pip install ghp-import --user && |
| 17 | $HOME/.local/bin/ghp-import -n target/doc && |
| 18 | git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages |
| 19 | env: |
| 20 | global: |
| 21 | secure: d3xB8MAHhj88le5WjaDmIsharVeZ+eDIbQtuPEkg5VjIsD+ZOc9ZY/y1Nrz3q8Xh3ytjYv78IWmxwn8UsRhimCZbgR4V4xkz8hSgIGn9dFbOvIpbeg6Tfvu2UO2YUOcNc/WtI/uymaMuZ2g8Fcg7K2ITEO2lXAcOFRpnBh2dXmA= |
| 22 | notifications: |
| 23 | email: |
| 24 | on_success: never |