summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 34f9818fb96ddec937c8f2dc0847364acbc83157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
sudo: false
language: rust
rust:
  - 1.1.0  # Oldest supported version
  - 1.2.0
  - 1.3.0
  - 1.4.0
  - 1.5.0
  - stable
  - beta
  - nightly

# Failures on nightly shouldn't fail the overall build.
matrix:
  allow_failures:
    - rust: nightly

os:
  - linux
  - osx

env:
  - ARCH=x86_64
  - ARCH=i686

script:
  - curl -sSL https://raw.githubusercontent.com/carllerche/travis-rust-matrix/master/test | RUST_TEST_THREADS=1 bash
  - cargo doc --no-deps

addons:
  apt:
    packages:
      - gcc-multilib

# Deploy documentation to S3 for specific branches. At some
# point, it would be nice to also support building docs for
# a specific tag
deploy:
  provider: s3
  access_key_id: AKIAIGFX36YKEFRZJAXA
  secret_access_key:
    secure: Q10KEdtBoYxaGXtt23L00J0obv9fpVWtao8YKFEroZMOmvu8Sq2+9aTNGEQRp2OojOxuu+DjZInJlUDFhq6trmV3kpZH2BF7cNRxiZQpQ2FEmlr6ZpYN38GhcIUKdxXqVwXiASJi6j+vz6QdpaOGCs5lQC3VhM5sn49MFXNUrFU=
  bucket: rustdoc
  endpoint: "rustdoc.s3-website-us-east-1.amazonaws.com"
  skip_cleanup: true
  local-dir: target/doc
  upload-dir: nix/${TRAVIS_BRANCH}/${TRAVIS_OS_NAME}
  acl: public_read
  on:
    condition: "\"$TRAVIS_RUST_VERSION/$ARCH\" == \"1.1.0/x86_64\""
    repo: carllerche/nix-rust
    branch:
      - master