language: rust
env:
  global:
    - secure: Ys5OhmpBC78RbiPr0bzpYeTv1k1huSp8OsiN1lRlHN4liLPFD3N870tMyFY4ZXfaF8ePpVGtaVDxWrxRPaRVeWHgmROiZLFTSSdOjSrTLvLSM30tC4f7FiPuE+um/GNWX4xlpaCNjJG0wOoKSB/WgM4DgNcqptsp76gKINXbRtw=
script:
  - cargo build
  - rustdoc src/lib.rs
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

language: rust
env:
  global:
    - secure: Ys5OhmpBC78RbiPr0bzpYeTv1k1huSp8OsiN1lRlHN4liLPFD3N870tMyFY4ZXfaF8ePpVGtaVDxWrxRPaRVeWHgmROiZLFTSSdOjSrTLvLSM30tC4f7FiPuE+um/GNWX4xlpaCNjJG0wOoKSB/WgM4DgNcqptsp76gKINXbRtw=
script:
  - cargo build
  - cargo doc
after_script:
  - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh

Use cargo doc command instead of rustdoc
Use cargo doc command instead of rustdoc
