Matthew Maurer | 19837bd | 2020-06-02 11:15:36 -0700 | [diff] [blame] | 1 | language: rust |
| 2 | rust: 'nightly' |
| 3 | sudo: false |
| 4 | script: |
| 5 | - cargo build --verbose --features bench |
| 6 | - cargo test --verbose --features bench |
| 7 | - cargo bench --verbose --features bench |
| 8 | - cargo clean |
| 9 | - cargo build --verbose |
| 10 | - cargo test --verbose |
| 11 | # next line is an ugly hack to fix an annoying bug where rustdoc tries to use the rustc_private unicode_width crate |
| 12 | # (there is probably a better fix than this) |
| 13 | - rm $(find /home/travis/.rustup -type f -name 'libunicode_width*') |
| 14 | - rustdoc --test README.md -L target/debug -L target/debug/deps |
| 15 | - cargo doc |
| 16 | after_success: | |
| 17 | [ $TRAVIS_BRANCH = master ] && |
| 18 | [ $TRAVIS_PULL_REQUEST = false ] && |
| 19 | echo '<meta http-equiv=refresh content=0;url=unicode_width/index.html>' > target/doc/index.html && |
| 20 | pip install ghp-import --user $USER && |
| 21 | $HOME/.local/bin/ghp-import -n target/doc && |
| 22 | git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages |
| 23 | env: |
| 24 | global: |
| 25 | secure: vHL3zrN8AF+H79jrB8OfzuPqsUHevo6ECzwqXPj2dMSqcSXEeCY/ENAfiyFg+oW8yEVP8X2BS1a/C9yvVQRLqLbm1HbZ/5vUpoggT9S0IhKqZMyAcLYXfIEUDMDQuaSdFndDaHvq8275ScgX1LRv1kcPjQoZHuaXWMH8y/Suvyo= |
| 26 | notifications: |
| 27 | email: |
| 28 | on_success: never |