-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (53 loc) · 1.99 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
62
63
64
65
# Based on the "trust" template v0.1.1
# https://github.com/japaric/trust/tree/v0.1.1
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=notify-hook
matrix:
include:
# Linux
- env: TARGET=i686-unknown-linux-gnu
#- env: TARGET=i686-unknown-linux-musl
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-musl
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: LKW4EbRCYVyXbitgmwybmdVkqR9zRGOS74VxrkM6feszS/UuS/QDyPZoEfPS1n+S1egV2ddDREDYxgrUb907HFU/cDQOi1YDeQ6T19TV1uk8riiPSNl/F3A2aHdo467ewo0QX9QOgFVoQn9WLdwFUZw6lJbu57weAlycXcK726Y4/waQ1yUnnur+pOLejvU4xMowj8HleM0od5KOmUITruj4tV2h5ki2tJ0Bc4XkhNtWRGWPLG7L3GKnLrwahQNbCSGDKF1FyjFt2SSB3G/alNHs9eTO9qtOpO6mYHUkMyln/hZ3I3dr5htcMfp7puLgFgNh+maX8STCzgZ0IwxskqG/6KqS0dpZPWS+msUfOKYlmFkWt4E9ZlHVAkaR5W3FMq5Sgbvg2syW/yINBiMbgWnxm8ZNIxY9OGl51eJ4DkLPP03iuEV539LctfRJsr47xGtMHnA9aWexqYozgI9Q5jTN3Jj3X4iHlD3yeSO0wde+xr4XiSINeED7AiEig3rQQzKY/kPWgOK5rygyo4y3yaygxRe6OxvrbKgujZyjAMKj2WU1r/5vXOGN+3c/7QB/qz4XeAJB4SPwQY3gwr0JMXDFyNcF7c5Opk7GLsdp0XoFAB/NavIZ254bxdWrC5ZEsGGBKwXb4YgMK76mybicSsAT5tTT3MIAynNidGNLR0k=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
# TODO Here you can pick which targets will generate binary releases
# In this example, there are some targets that are tested using the stable
# and nightly channels. This condition makes sure there is only one release
# for such targets and that's generated using the stable channel
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