summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 4a78aa196f4f2745aa1ba76bdaafca9518890072 (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
55
56
57
58
59
60
61
62
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2

dist: trusty
language: rust
services: docker
sudo: required

env:
  global:
    - CRATE_NAME=mdbook-mermaid

matrix:
  include:
    # Linux
    - env: TARGET=i686-unknown-linux-gnu
    - env: TARGET=x86_64-unknown-linux-gnu

    # OSX
    - env: TARGET=x86_64-apple-darwin
      os: osx

before_install:
  - set -e
  - rustup self update

install:
  - sh ci/install.sh
  - source ~/.cargo/env || true

script:
  - bash ci/script.sh

after_script: set +e

before_deploy:
  - sh ci/before_deploy.sh

deploy:
  api_key:
    secure: "Jb+Qc9XCkIg6ygOgqRN5tLGMGDmaqeUGXmAcX8CMjI3SPGkI4ewRgHdpyF/47CJ+aORU9AtpX5m73hz6hqOTcgBQoPhwAm8Rly/e14YMr7blobVvaMMV7hzaag0cApW/QyKvyJCHPxBN6Fz7y3Gje0hzdt9dEXbWdhFyHzGBpB2g42Cr7lHA/9+uqbv6tKRGJkQb7htDJypuilpLwtzFUXPjbyN0r5wteOXFdPtnM7y/bk4z/72lGhsg3ItA5nTsRJUlaHqbj2AS2sILpb+LpcMa62cfxx5cSGXqI+FEHM0HwaRzbVZyUCtKrKY2C6gpGL/ujKppv6DwhjXHOGqHNSfRtWV+ZlzJ5l+92RrZQ4Xt5P2l9splZsOp3WpRmuETFg1q+qwrY1ErEsS7XGb2/QHwqRrnvYA/gUrUM8I2lp2pSyBbUOrUkCNdG76miUafCUdAiJwUVw32JwMDPnQQI5SNX0H64VK4WOcXsOnl+mqu97bW/x4EWMxGeouLp/496q6qD1jl1B5+9srbGJOgtc4a1qlo1WXcqurJmjC2fnNRmjwOKlvd3zKGq0NmfQRRlOZxMcu5omCxapMIG5fVPKgN3bJFThqY/yHtr8bhjmSJlItCMsFwq9dAm4rM3Iz+Ux+bvHIj8WWtpRrKBc3KbuigjWmnW+/k0XhxsXX4JNQ="
  file_glob: true
  file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
  on:
    condition: $TRAVIS_RUST_VERSION = stable
    tags: true
  provider: releases
  skip_cleanup: true

cache: cargo
before_cache:
  # Travis can't cache files that are not readable by "others"
  - chmod -R a+r $HOME/.cargo

branches:
  only:
    # release tags
    - /^\d+\.\d+\.\d+.*$/
    - master

notifications:
  email: false