forked from crev-dev/rblake2sum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (55 loc) · 2.13 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
language: rust
cache: cargo
matrix:
include:
# OS compat
- os: linux
- os: osx
# rustc version compat
- rust: stable
- rust: 1.41.0 # oldest supported version, keep in sync with README.md
- rust: beta
- rust: nightly
# deployments
- env: DEPLOY=1 TARGET=x86_64-apple-darwin OPENSSL_STATIC=yes
script: cargo build --locked --release --target $TARGET
os: osx
- env: DEPLOY=1 TARGET=x86_64-unknown-linux-musl OPENSSL_DIR=$HOME/openssl-musl
before_script: ./ci/travis-musl-openssl.sh
script: cargo build --locked --release --target $TARGET
addons:
apt:
packages:
- musl-tools
allow_failures:
- rust: nightly
script:
- cargo build --release --locked --verbose
- RUST_BACKTRACE=1 cargo test --release --locked --all --verbose
# Requires PR #321
#- if [[ "${DIST_SCCACHE}" = "1" ]]; then RUST_BACKTRACE=1 cargo test --all --verbose test_dist_ -- --test-threads 1; fi
before_deploy:
- "./ci/prep_deploy.sh"
deploy:
api_key:
secure: "rNku4C73zyGUHfXwoLjvfEBsqey48mJqb9Y7s4GzI3NpxT/SFhkxmcif89L+Hjbw9p6yQtmS6MuUrH3G2sMndbqPmm6QZYHfIUP1wqFBjJL2/A7B0Sf8eQweprUWqU/8DmRreC7Xe6Se0fYebQEyXVQurEy1SeUNsw9PVROBU630pimXwHDK1Kxj526cCXYGMeCrsEef/aJ9jkcvKIw88FIoO/VNYBe29at08rahsos6+O0jjQBL0rc1OlzkM1zVu/82CBd2/XcudJ4S+YZ0Y17SRnn5EhEgY9rYPq2bmLhbfyGYYHfhu5CIa2KC5g4AwJ0lDMh/Fa0+qHG0mVvVe34+b6X2+MvLswoUNxyC9lEYHSbkh+KEMgCMXQzMJULikn+S7ZHStYMLLKkQS+UPiekaP7aGKUk5wxz+ClWUH9ec19l+aBmcsoPLEM8dZBQcA9lCQBqC4/O9d3WOc+yARHhAnwilXyJeeH0CjYuerwt5mzRsB9/4LIJ58CzbhDEwlR6qQLb57qs3N5AwtGbQGWrgs0wLK06LGn3m5tEqBwb7WFPY9CtXxD9JP1IzLBbiJhrgdjSNDZ2oxgiP5Qi3fofQUoVKiUs8uWw8uZEzEvvwmHMs10Bt9mR4gt7/twsnucnrzUZlIjzN/rEv75Yf0JF89jylfZzq9AlpiP+pi+o="
file_glob: true
file: rblake2sum-$TRAVIS_TAG-$TARGET.*
on:
condition: $TRAVIS_RUST_VERSION = stable
condition: $DEPLOY = 1
tags: true
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
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never