blob: af011bdc3a121bf121a8527d74975702a6cc7b7c [file] [log] [blame]
Matthew Maurer50169342020-06-02 11:15:34 -07001language: rust
2rust:
3 - 1.24.0
4 - stable
5os: linux
6script:
7 - cargo build --verbose
8 - |
9 if [ $TRAVIS_RUST_VERSION = stable ]; then cargo test --verbose || travis_terminate 1; fi
10 - cargo doc
11after_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
19env:
20 global:
21 secure: d3xB8MAHhj88le5WjaDmIsharVeZ+eDIbQtuPEkg5VjIsD+ZOc9ZY/y1Nrz3q8Xh3ytjYv78IWmxwn8UsRhimCZbgR4V4xkz8hSgIGn9dFbOvIpbeg6Tfvu2UO2YUOcNc/WtI/uymaMuZ2g8Fcg7K2ITEO2lXAcOFRpnBh2dXmA=
22notifications:
23 email:
24 on_success: never