• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: rust
2matrix:
3  include:
4    - rust: nightly
5    - rust: stable
6      env: RUSTFMT=1
7
8    # Minimum supported Rust version
9    - rust: 1.6.0
10      script:
11        - cargo build
12
13before_script:
14  - if [ "$RUSTFMT" = 1 ]; then rustup component add rustfmt; fi
15
16script:
17  - if [ "$RUSTFMT" = 1 ]; then cargo fmt -- --check; fi
18  - cargo test
19  - cargo doc --no-deps
20
21# Deploy documentation to S3 for specific branches. At some
22# point, it would be nice to also support building docs for
23# a specific tag
24deploy:
25  provider: s3
26  access_key_id: AKIAIXM3KLI7WZS4ZA3Q
27  secret_access_key:
28    secure: WyYzM8PxSKC3HQ+jINE50KOu5j3taOA4chJJ9zfAhM8Eug/Z1bK8taHnm73xrCUsvh4bv1C3XWAnSTl4YO/HykYulTIVPPs6go+ssk/59PDV6dGPhheLj2tKcSrjKd4q8H668MAPiAlNt9Rvq/GkkdAW2GXG1+otPMVFBrnR+kld6WaX5EB18SjApKgl5NwSRj9wiSIPYJTBnZQhCsaM4YRMkpFbFoHUWjSjm7N9f/6A3a3jRzW7/ZtqXvMaMazMSBAlN0/LH2UMTKCuj7nywKJt1NkpEF8mA9IEUCDBCnQs+e58v6BpkDZ2nhCJ7vdm0bISuZB6jXhg+sOycZbdb7mbn5n4mPBMa1c8WnsfmVxm7bV7G3sRpcGU8HvRT35lCCuCt4bFBX1O2abuTtVqS7XgtyChBmrSG6I/z+lw+u44Dk5bYK9A2hZSOEPFr09R8f2YRe9cqAq+uI6rNPyY7DC0eATCRCX5CxjYR6DG2bDoDFfPsBlRLQJJUl/BOM5pWYdm97iaqobxlPmKaxuxTSHw1D3Z9OvuQVeB2z+4G9xMhBBTJ0N671oZhUajpBy8OW4k9c8jl+joe01W+SScfk+qPV8ivjirTPYsUYRT3gtUgO/X/XuZ+EXGcnx+Brpu6FQtW6qSKH4Q+cofM4aohoopSIAP9dZ5zpQqQTACKyE=
29  bucket: rust-doc
30  endpoint: rust-doc.s3-website-us-east-1.amazonaws.com
31  skip_cleanup: true
32  local-dir: target/doc
33  upload-dir: slab/${TRAVIS_BRANCH}
34  acl: public_read
35  on:
36    condition: $TRAVIS_RUST_VERSION == "1.3.0" && $TRAVIS_OS_NAME == "linux"
37    repo: carllerche/slab
38    branch:
39      - master
40