-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (48 loc) · 1.69 KB
/
.travis.yml
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
# 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=patroni-exporter
matrix:
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
before_install:
- set -e
- rustup self update
install:
- source ~/.cargo/env || true
script:
- cargo build --target $TARGET --release
after_script: set +e
before_deploy:
- cp target/$TARGET/release/patroni_exporter $CRATE_NAME-$TRAVIS_TAG-$TARGET
deploy:
api_key:
secure: "FhpDEwtp2LWaYpuyDANuwHc/pJnwww/OTCtQYuvtHh5btUQHia5ltjLNpEbyaQDq4Pe6bvRtayu0wtdP/cshfxcQ9Q136s6qSwJGV4tuTL5IrPxez3rP2lWz483IcJfqU73P7088gRu6V0tWYjy3RP13mC/UoRys79BCEc4OO22bkOid0nDzBLl2JRGLdzZbz1JLjwE0pwu7vaMC36tWVeddN2A/buxxcuJsWJYkPdV4hITXtcT8Mqo0WfX9ozifbQPc4rlLKrvPt6LcSXWtA6VUccc9YR9s+L0OyuBWviN9EPH5SJzRfmnKvXZP7OTgczjerUdPVJsVC9QkTDieZPxPSAaEk6vND4kAmQflVEXgfvBx7LJbkCpZFaiAXY6FW8PNeCVFcC+I4JogG7xS/nB3JNo0Njpdg0mNrhUcFnLCODD2DRduB23caIXX7AdiiGPSGLNd3lUF8QCK6em1TwMxpnQZCC9C4Op7+0vI6YH2MtORbGGIM0ehYghT6JkEipgDt5MPIHg68PETJO48qTbxsA8wWOOKaIJJBSA6e9kenb/v6mpiXC8b9sAWJo6ofFZJcDsMO3gD08VUKg0ZHn+yM1r1WKwYZMBnoifvnP56EiXHhWB8h8WVD/G3DfneN5/zwUzsG0Fy7gukrSfOxQI6/1EPbCqT8z6XnkX9f5k="
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
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never