1language: rust
2matrix:
3  include:
4    - rust: 1.30.0
5    - rust: stable
6      env: RUST_STABLE=1
7    - rust: beta
8    - rust: nightly
9    - name: "master doc to gh-pages"
10      rust: nightly
11      script:
12        - cargo doc --no-deps
13      deploy:
14        provider: script
15        script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd target/doc && ../../rust_out)
16        skip_cleanup: true
17        on:
18          branch: master
19
20before_script:
21  - rustup component add rustfmt-preview
22script:
23  - |
24    if [ "$RUST_STABLE" = 1 ]; then
25      cargo fmt --all -- --check
26    fi
27  - cargo build --verbose
28  - cargo test --verbose
29notifications:
30  email:
31    on_success: never
32