-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
193 lines (184 loc) · 5.86 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
language: rust
cache: cargo
env:
global:
- PROJECT_NAME=terminator
- DEB_MAINTAINER="Alex Wilson <[email protected]>"
- DEB_DESCRIPTION="A tool for quickly, and securely, deleting sensitive information from machines."
- MAKE_DEB=yes
- DEB_MAINTAINER="Jorge Aparicio <[email protected]>"
- DEB_DESCRIPTION="Hello, world! written in Rust"
# AFAICT There are a few ways to set up the build jobs. This one is not the DRYest but I feel is the
# easiest to reason about.
# NOTE Make *sure* you don't remove a reference (&foo) if you are going to dereference it (*foo)
matrix:
include:
# Stable channel
- os: linux
rust: stable
env: TARGET=aarch64-unknown-linux-gnu
# need Trusty because the glibc in Precise is too old and doesn't support 64-bit arm
dist: trusty
sudo: required
# Extra packages only for this job
addons:
apt:
packages: &aarch64_unknown_linux_gnu
# Transparent emulation
- qemu-user-static
- binfmt-support
- os: linux
rust: stable
env: TARGET=armv7-unknown-linux-gnueabihf
# sudo is needed for binfmt_misc, which is needed for transparent user qemu emulation
sudo: required
addons:
apt:
packages: &armv7_unknown_linux_gnueabihf
# Cross compiler and cross compiled C libraries
- gcc-arm-linux-gnueabihf
- libc6-armhf-cross
- libc6-dev-armhf-cross
# Transparent emulation
- qemu-user-static
- binfmt-support
- os: osx
rust: stable
env: TARGET=i686-apple-darwin
- os: linux
rust: stable
env: TARGET=i686-unknown-linux-gnu
addons:
apt:
packages: &i686_unknown_linux_gnu
# Cross compiler and cross compiled C libraries
- gcc-multilib
- os: linux
rust: stable
env: TARGET=i686-unknown-linux-musl
- os: osx
rust: stable
env: TARGET=x86_64-apple-darwin
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-musl
# Beta channel
- os: linux
rust: beta
env: TARGET=aarch64-unknown-linux-gnu
dist: trusty
sudo: required
addons:
apt:
packages: *aarch64_unknown_linux_gnu
- os: linux
rust: beta
env: TARGET=armv7-unknown-linux-gnueabihf
sudo: required
addons:
apt:
# Use the same packages the stable version uses
packages: *armv7_unknown_linux_gnueabihf
- os: osx
rust: beta
env: TARGET=i686-apple-darwin
- os: linux
rust: beta
env: TARGET=i686-unknown-linux-gnu
addons:
apt:
packages: *i686_unknown_linux_gnu
- os: linux
rust: beta
env: TARGET=i686-unknown-linux-musl
- os: osx
rust: beta
env: TARGET=x86_64-apple-darwin
- os: linux
rust: beta
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: beta
env: TARGET=x86_64-unknown-linux-musl
# Nightly channel
- os: linux
rust: nightly
env: TARGET=aarch64-unknown-linux-gnu
dist: trusty
sudo: required
addons:
apt:
packages: *aarch64_unknown_linux_gnu
- os: linux
rust: nightly
env: TARGET=armv7-unknown-linux-gnueabihf
sudo: required
addons:
apt:
# Use the same packages the stable version uses
packages: *armv7_unknown_linux_gnueabihf
- os: osx
rust: nightly
env: TARGET=i686-apple-darwin
- os: linux
rust: nightly
env: TARGET=i686-unknown-linux-gnu
addons:
apt:
packages: *i686_unknown_linux_gnu
- os: linux
rust: nightly
env: TARGET=i686-unknown-linux-musl
- os: osx
rust: nightly
env: TARGET=x86_64-apple-darwin
- os: linux
rust: nightly
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: nightly
env: TARGET=x86_64-unknown-linux-musl
allow_failures:
# Target `i686-unknown-linux-musl` is currently only available on the nightly channel
- os: linux
rust: stable
env: TARGET=i686-unknown-linux-musl
- os: linux
rust: beta
env: TARGET=i686-unknown-linux-musl
before_install:
- bash tests/bootstrap.sh
- export PATH="$PATH:$HOME/.cargo/bin"
install:
- bash ci/install.sh
script:
- bash ci/script.sh
before_deploy:
- bash ci/before_deploy.sh
deploy:
provider: releases
api_key:
secure: "tCp4Ow7k8vj5UYEFTllGCbaxD9CF7r0/uqU3kLFg8fA2SJT3DC1Fl371fb+1+4HHrT1D5+QE9Lf/z+i47w3hL+w5pTqql3Q1Wkz3kc4RLsoORZp8eJ89JieB9sIVymD5zs6fseK34PnsJVyjoAY4fpv/rGbTGVKdsxK/dZVCPAwAzOQJ4wbjW2NDh71hf+zjfTEXkho69tsamdsB6Vy1ULj22U9eKwmZAe1hBylwjP0fQnreQoyRdpKpmkPDR1clQ4ZA0uepx/GUsqdfrs2ICXuDE6L+2yqoYycpElwsUw4JMwpG9CTiZppsz1Aq5zdrK+8JmjFyNumBrygrcmbyQF/9P+lrzPJobnkRAxweIPPcppDaX4my0kpXCCybS4mZWUhF06zAyyRBgoioPW4vAyPV63LCtH5ixP/L+i9t2OFDGrIKz8NSVRcvoj9qq7XBrwxNPCzT5nW7QeWF3Q7QuGFoQnyviif5HUqcw78+bNlJrei2G08qqNOL+wtt8/A602MEdlhOhY7uOI/6o4N2ndwupzaycz86dtRiwi5TsdxeFI0x/6i4PRpmMXd0/8HDbpB5556a9Gui3BVxjm5p3C+W1C9wBczob2/iKZprErRShoqq6Z9Q7SjEjSEKEAa5PRMLfSByJZ4KOs7fx0nQrMBPuUk7bOxkv0Pc3ME6MxU="
file_glob: true
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*
# don't delete the artifacts from previous phases
skip_cleanup: true
# deploy when a new tag is pushed
on:
# channel to use to produce the release artifacts
# NOTE make sure you only release *once* per target
condition: $TRAVIS_RUST_VERSION = stable
tags: true
branches:
only:
# Pushes and PR to the master branch
- master
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
- /^v\d+\.\d+\.\d+.*$/
notifications:
email:
on_success: never