forked from input-output-hk/jormungandr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (85 loc) · 3.53 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# 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=jormungandr
matrix:
include:
# Linux
- env: TARGET=aarch64-unknown-linux-gnu DISABLE_TESTS=1
- env: TARGET=arm-unknown-linux-gnueabi DISABLE_TESTS=1
- env: TARGET=armv7-unknown-linux-gnueabihf DISABLE_TESTS=1
- env: TARGET=mips64-unknown-linux-gnuabi64 DISABLE_TESTS=1
- env: TARGET=mips64el-unknown-linux-gnuabi64 DISABLE_TESTS=1
- env: TARGET=powerpc64-unknown-linux-gnu DISABLE_TESTS=1
- env: TARGET=powerpc64le-unknown-linux-gnu DISABLE_TESTS=1
- env: TARGET=x86_64-unknown-linux-gnu
- env: TARGET=x86_64-unknown-linux-musl
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
# *BSD
- env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
- env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1
# for building the documentation we disable all the `cross'
# specific build
- name: "Documentation"
env: DOCUMENTATION=1
os: linux
language: rust
rust: stable
before_install:
install:
- which mdbook || cargo install mdbook
- which mdbook || cargo install mdbook-linkcheck
script:
- mdbook build
after_script:
before_deploy:
before_install:
- set -e
- rustup self update
install:
- rustup update stable
- 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:
- provider: releases
api_key:
secure: yQ7C2wgLhS2wwEFB+iUDjSQyBxXzQRUYlSEpbRHPY+L0JAOWnnnh+MnraZxrnEXcMcYvt+wI6+B/ZakuQ9SjPy639RLNQfC+L2dCT+jsHKdgxTpeveHQhdsdExpkIKhGFwAlDHv3hhnNkBcYKLc6NksngyR/P6jfv9H/RKpKbCMQcHIoA55sd6yJ3uF4umJKHKQUGwiqWGAfNOMtLazJasLviJQBRtzZw0Xly4ANqxNRkW8T9Aw3eQiD3p5RS+ELVhbqFqtqQGe/iJ8O2fnfY9HUcrxWBRrF+9rWVNzIj+uyeSP4NuJTtyMye2M1TbfsHwbIcDWka0S+I2/lS5tr5JYNhZ4NJFRuLgqRGDWFv9Q8eauDdX6PnOCkPjA8pZ0toCstz5x6wqV9P2M95FB5ZAlcptvM/lR4+7J/AwoPC+1Js4wMv5S1cyEJehTR3wSorO2+tYTVfJCcrHg+uRSr1lpdWFRALlC/2I9CGx9ddtSaop6vNCVhgAy2rdWKSXdcQS2tAGy/Qd82kiNxohorfYhN5ttAMv+In1/oL3bvjzmDMnVhmzhMwKwO00CQs2oEYEFbC9uHRY6x2JJmz28bx46AA9IX5kMG+ks97GOIkufGp0V7/aIGqubDubLwei6TAUlMeCkpfryOkF51yZfvdxpWmzcEGY0Ha1Mhx7gk4dM=
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
skip_cleanup: true
- provider: pages
github_token:
secure: yQ7C2wgLhS2wwEFB+iUDjSQyBxXzQRUYlSEpbRHPY+L0JAOWnnnh+MnraZxrnEXcMcYvt+wI6+B/ZakuQ9SjPy639RLNQfC+L2dCT+jsHKdgxTpeveHQhdsdExpkIKhGFwAlDHv3hhnNkBcYKLc6NksngyR/P6jfv9H/RKpKbCMQcHIoA55sd6yJ3uF4umJKHKQUGwiqWGAfNOMtLazJasLviJQBRtzZw0Xly4ANqxNRkW8T9Aw3eQiD3p5RS+ELVhbqFqtqQGe/iJ8O2fnfY9HUcrxWBRrF+9rWVNzIj+uyeSP4NuJTtyMye2M1TbfsHwbIcDWka0S+I2/lS5tr5JYNhZ4NJFRuLgqRGDWFv9Q8eauDdX6PnOCkPjA8pZ0toCstz5x6wqV9P2M95FB5ZAlcptvM/lR4+7J/AwoPC+1Js4wMv5S1cyEJehTR3wSorO2+tYTVfJCcrHg+uRSr1lpdWFRALlC/2I9CGx9ddtSaop6vNCVhgAy2rdWKSXdcQS2tAGy/Qd82kiNxohorfYhN5ttAMv+In1/oL3bvjzmDMnVhmzhMwKwO00CQs2oEYEFbC9uHRY6x2JJmz28bx46AA9IX5kMG+ks97GOIkufGp0V7/aIGqubDubLwei6TAUlMeCkpfryOkF51yZfvdxpWmzcEGY0Ha1Mhx7gk4dM=
file_glob: true
skip-cleanup: true
local-dir: book/html
keep-history: false
on:
condition: $DOCUMENTATION = 1
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