| 1 | language: rust |
| 2 | cache: cargo |
| 3 | |
| 4 | matrix: |
| 5 | include: |
| 6 | - rust: stable |
| 7 | os: linux |
| 8 | - rust: nightly |
| 9 | os: linux |
| 10 | - rust: stable |
| 11 | os: osx |
| 12 | - rust: nightly |
| 13 | os: osx |
| 14 | |
| 15 | script: |
| 16 | - | |
| 17 | if [[ "$TRAVIS_RUST_VERSION" == stable ]] |
| 18 | then |
| 19 | rustup component add rustfmt |
| 20 | cargo fmt --all -- --check |
| 21 | fi |
| 22 | - cargo test |
| 23 | - cargo test --features early-data |
| 24 | - cargo test ---no-default-features --features client |
| 25 | - cargo test ---no-default-features --features server |
| 26 | - cd examples/server |
| 27 | - cargo check |
| 28 | - cd ../../examples/client |
| 29 | - cargo check |