forked from Ouest-France/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (68 loc) · 2.39 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
73
74
75
76
77
78
79
80
81
82
83
84
# 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=validator-cli
matrix:
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
# don't need
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=i686-apple-darwin
os: osx
- env: TARGET=x86_64-apple-darwin
os: osx
# Bare metal
# These targets don't support std and as such are likely not suitable for
# most crates.
# - env: TARGET=thumbv6m-none-eabi
# - env: TARGET=thumbv7em-none-eabi
# - env: TARGET=thumbv7em-none-eabihf
# - env: TARGET=thumbv7m-none-eabi
# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly
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:
# TODO update `api_key.secure`
# - 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: "KC4H6kl/OHA4IYn2tz24hHbL7pI6HCBtBSFDrk5jCJUHwbF4zjaV0Yj06GTcPL2Ti7puXNOmgk8/rEAcDyP9MQB4yN7g1yKT3rK57NGHGswQYnMyNQlbBUsg4iSM/VfWE++j5dVwN4K0xoqIOnMlloVDCsLlO042E/HG9y2rw66E3K8zfKvn4c1vVhhkVHbpkIvpCzu1xbbJYmWE7dAecNKbI37IMdBmGV5uUWOB5U81bp1/Ww2DwFk+l7ZmlLCjQLpuQwaMrx/xO9n7cNAOf1ZH55KswYlFPcWFCW4eMfKbynf9nfreiOu0F6rsiDmGm15nnCjscFN0aki7FzDQ+2HM43u7og84o1CwZZ0WADWookP4rLv4uBIILKXrETJw4rUzxCnXj+yFyqQhPnlZ2MxcG6KlT+3lYLRH+Ec1VdGussCu8o3ty6HkFjaGlHnhFRpgqVdnzNIREjFb1gSWYC3fBQ8E7CxpRO7ToaTbTZ44nLHVx0WQ34ZOUL9OawVar2LXuGCJR7SGZ7gyjnLkgpa3wg2vQfTGB0whGvJ0gnq2TX2kVXoaqOttGzkyzqxJVQFmg8xTK2+UDGpHaNEBAAnFHae0Xx4CUVL0z4tATK188CSIFVowGAQbkT2JGoRUhwfCAp2SAaNCBK1JxX17eId/nWf8rbY8mptRXKjLJKI="
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
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
- cross-build
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never