This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (47 loc) · 1.77 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
language: rust
cache:
directories:
- "$HOME/.cargo"
- "$HOME/.cache"
services:
- docker
env:
- RUSTC_WRAPPER=sccache
jobs:
include:
- env: TARGET=x86_64-unknown-linux-gnu OUTPUT=dsfc CARGO=cargo
os: linux
- env: TARGET=armv7-unknown-linux-gnueabihf OUTPUT=dsfc CARGO=cross
os: linux
- env: TARGET=x86_64-apple-darwin OUTPUT=dsfc CARGO=cargo
os: osx
- env: TARGET=i686-pc-windows-msvc OUTPUT=dsfc.exe CARGO=cargo
os: windows
allow_failures:
- os: windows
install:
- cargo fetch
- rustup target add $TARGET
- rustup component add rustfmt
- cargo install cross sccache || true
script:
- $CARGO test
- $CARGO build --target $TARGET --release
- if [[ $OS == 'linux' ]]; then cargo deb --no-build --target $TARGET; fi
- tar -cvf target/dsfc-$TARGET-$TRAVIS_TAG.tgz -C target/$TARGET/release/ $OUTPUT
deploy:
provider: releases
api_key:
secure: iMVGOFmBet85mCox6jdo9VLzLbLfRKemW38E0cqH2MKO1FRxA/K9fsL4rI3QYlPL4nqySptQs2S5lcoE/uBEuLb/x3ex+8eqfAlok+WmolAkYp6e4XLEhvMxXChzD08HlTSrYCGSlbqn/L0gQEdjSq0QEk/CsJss8Zu3gIEa1A6BhQQi3Fb9EIt0pUgtAb7qUqpejKMsvFKJMThSpfBSs5iPzsanlFOMBFVidj5vJO84fUgXSElFKNhylS/u/r5aS5VdELCmBSbfO+fGySldDe9iYM16H1AnY8tL3PBmGm7nd7m6hqnQLMS7QibusVVZzRrkNVy/6Bqoof1d4p8MNaW2/fIWY18gn+h4TMv/UjNNF7BK0iV+SHCLXRCI8GZS/xyFC4F48GTt8FjC7DQLw1ldcuj9rzt5qCxclHZDrLA3u3jG2Nsl+FccwvZ7wX9h7BraXSz0uF5LoJGegwNWBUwMizdHVBbSjSxOJNY0u+Wb7/pw7e+5d8ARIQ2xxb7ecy68uNR81zTQiZfp6RgpQIQc1CdCWEZQqOPRdXI3hJpw1LJZiOZCyORgkEolT40+BKzHNzVJOyrJluycE4TOWkcjYxBn/wLgx8aiSi2keuudVz9GzeAxKVOfh5clm0hRw5AG+x1LhBTTetO3qabBK+u+I/6hhVhr+O8f3gM3Xn4=
file:
- "target/*.tgz"
- "target/$TARGET/debian/*.deb"
file_glob: true
on:
repo: dist-svc/dsf-client
tags: true
skip_cleanup: 'true'
notifications:
email:
on_success: never
on_failure: never