| 1 |
language: rust |
| 2 |
rust: |
| 3 |
- stable |
| 4 |
- beta |
| 5 |
- nightly |
| 6 |
|
| 7 |
before_install: |
| 8 |
- if [[ "$TRAVIS_RUST_VERSION" == *stable* ]]; then rustup component add rustfmt; cargo fmt --version; fi |
| 9 |
|
| 10 |
script: |
| 11 |
- if [[ "$TRAVIS_RUST_VERSION" == *stable* ]]; then cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false); fi |
| 12 |
- cargo build -v |
| 13 |
- cargo test -v |
| 14 |
- cargo doc -v |
| 15 |
after_success: |
| 16 |
- curl http://docs.piston.rs/travis-doc-upload.sh | sh |