-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (46 loc) · 2.4 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
language: rust
cache: cargo
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/
os:
- linux
- osx
- windows
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
addons:
apt:
packages:
- libudev-dev
before_script:
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_RUST_VERSION" = "stable" ]]; then cargo install --force cargo-audit; fi
script:
- cargo build --verbose --release --all
- cargo test --verbose --lib
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_RUST_VERSION" = "stable" ]]; then cargo audit; fi
before_deploy:
- if [[ -f target/release/sut ]]; then mv target/release/sut "target/release/sut-$TRAVIS_TAG-$TRAVIS_OS_NAME"; fi
deploy:
- provider: cargo
on:
tags: true
condition: "$TRAVIS_RUST_VERSION = stable && $TRAVIS_OS_NAME = linux"
token:
secure: bbB4Ev12FNo8bwaYh9lg+0jUwPaw06wy5LKh8HEywxaJQV3fCFvr40SKCUVtuwmL10uBOh+BoROlOdXb47kE4gyUV2qx7wdE0a8pQZRlIgZwKZ7gKrcPmWlsGvXv+dVemac3mxdYKB164zE+kt4tFxBfVlyxfpeK4iSekpBtISdTpzBM1esQluj7K6DZxJTNdpTenJ2oF7+Cd8pw+J5iB6Rs3u9Jf04JLCJZO+SpDWmTsJ7npqbYiexDb3LyiZBC87wNzugQ9C1t14puL3mFLmmiMbJAAU4o8RMDPGlD7DwJDxEdaSh2k3qg1/N74LmFHDCCondW0i+SXhRO1xp+pYpzNd9VVYCPEVVEQ9CSNHHUGX0OS9xLNhbpwj1iHbgUKx/JWl4aGNk9/fZHe8zJi3XglzsTln9WRXiQiqgxKM4/bWxhW8VI63TkDBdsVYvy/9/BEhpF+n8aDC10DSIk13zBVqGM7oqzLyM2HTWOBYnFLrOkrRVOzfYYLgaz4QYM0IttLXfPwa4auI59jUNs8jRkW/4nQZPaVBNyB+bYv8oMXTr3gGE3PD2cEHmFg8A7he4MJYRhuvhwOZYM0gKAsPLkEXLqsOqvR04s2hQ/2/Z4CFVQ+H7Km5YjOOz9nzo6yx1t/bMB+kWN5Wj7zFnf6wtKfhJNmz1MQ3Ps6jhyjsw=
- provider: releases
skip_cleanup: true
file: target/release/sut-*
file_glob: true
on:
tags: true
condition: "$TRAVIS_RUST_VERSION = stable"
api_key:
secure: mL4TUsta5kSZZ/rLPZdRaSMwRlyhQA4Om4k9Kfms5omBtZMhlG3s29Jh1V+1uA4X5ueLQVwcjt8YyZ5b/qLFld57N0E11mpRnj/K0uzSiUkAiv+kUTTOn6Iq2/2J3mxyS4YDJlk/jZbzak1kLZfWEmzFmXDWjCVAgQBh5wGUEJc26xx3nLq6I3YeLTA9G/IoEfZVvUHb0WdZgHKPwXaJ1nm3dDtoTwGs5iurI5bknYi9BCq/gFJ7o8Grjd2c2TU74l+z5yPcZl9I3JPTbTebTyiQYo+2AXLzYj7x0UHUYmDR89ojPplACbnJC65NIbw96sIIPQtNpcxjwFHeQ1X24gulKiGKGl+rni8fvjRcEZIF9cvPpIMVtYSUSE1s8wMobs1uf3D85g9PjY6j7cd3aHEhZSbygZHzixVDgSrCNDBPUyR5Nhb9ztl5bJo+VvnCNmkRTbEXtg+si5En1h6rFsWCltxoQrZ+bJ11/d11MD01su6RQ0Jhrjr1pWUl4yKOAhZj9T6hh8s/SWaRNq5jyCwmucOlEqGnNo1dxuwSYjGtcr4xHpvjnBMTLGftkXlFm6jlH/U09nuk9vtlG2uFKyNkuSonL4qBsx13O3FSD4ZdzQIFDdzBCwT8b6sDxXnicN4of7AVxeA59le2nEOhndOqf7T6wM4tOcQpXX1RmO4=