-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (58 loc) · 2.25 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
66
67
68
69
70
71
72
# 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=hmum
matrix:
include:
# Linux
- env: TARGET=arm-unknown-linux-gnueabi DISABLE_TESTS=1
- env: TARGET=armv7-unknown-linux-gnueabihf DISABLE_TESTS=1
- env: TARGET=x86_64-unknown-linux-musl DISABLE_TESTS=1
# OSX
- env: TARGET=x86_64-apple-darwin DISABLE_TESTS=1
os: osx
# Windows
- env: TARGET=x86_64-pc-windows-gnu DISABLE_TESTS=1
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:
# - Create a `public_repo` GitHub token. Go to: https://github.com/settings/tokens/new
# - Encrypt it: `travis encrypt 0123456789012345678901234567890123456789
# - Paste the output down here
api_key:
secure: LgOHWOWshg5Hs1ZowzSwXK/6ussSSJOgR0gIHz3nCdvAq8Fulsn75Np4rk5boxzCEpuLjxhf4hxbbM19RX3mtNaXVN5d4F4QhITWHWMusDxkhnZT6/0D/ZGzpMhTmhC0Bvz1+7e+KtuxCj+YgC21ElV8h8M/ExmuDc1Ruz8CcyJWbMUcBl5To9U6zDcOF+OTLRVHhB68KyXulSq9KvE7GUQCgdtQue7Dowk0iSeD+kPLQ1AsHX7PdUS3uZkETUP7QCz9Ph3OknpNwzBrGIYnKxIELiOTTwIwKXBivaHyAQ5fx40V71g3TONKZcsmY0UH0Rf1AfbVWjYA6Wk7UlAjJjcPFjflcUDI+QXyxRh1d4+c1GBleudv2Z0lrqblFXq05p9xwLtXPQK471gV1epwe1WZdKAkIOak+fTP2ZKRCN/aXbuggAxTTu/bYEVzJk9V8pFQWAoA5rMbEIUYlmcqI3/vAX0UKEv7ZZUUfiXzm6RIfYsZqyDtCglFaRWmNbeXKlaUy9N2IF/YTK01yLovlBQ6/h445iW4Fn0cxjQA4bEYXoaDsP/TOSQXEuCuASb1xB5fYeh+mJypsyAxVCMXWDyVS5w67BdcTv+7cWH2CYlB6nxfcE/od5JGJpB5KQUTwgDEH02uIMBVUYR+zvG3Gs4TIWPSs4mWUyAAeXlUa80=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
# 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
- /^\d+\.\d+\.\d+.*$/
notifications:
email:
on_success: never