This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
70 lines (60 loc) · 2.56 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
language: rust
cache: cargo
matrix:
include:
# OS compat
- os: linux
- os: osx
# rustc version compat
- rust: stable
- rust: 1.36.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 --release --target $TARGET --features=all
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 --release --target $TARGET --features=all
addons:
apt:
packages:
- musl-tools
allow_failures:
- rust: nightly
before_script:
- export EXTRA_FEATURES=
- if [[ "${TRAVIS_RUST_VERSION}" = "nightly" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES unstable"; fi
- if [[ "${DIST_SCCACHE}" = "1" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES dist-client dist-server"; fi
script:
- cargo build --verbose --features="all ${EXTRA_FEATURES}"
- RUST_BACKTRACE=1 cargo test --all --verbose --no-default-features --features="${EXTRA_FEATURES}"
- RUST_BACKTRACE=1 cargo test --all --verbose --features="all ${EXTRA_FEATURES}"
# Requires PR #321
#- if [[ "${DIST_SCCACHE}" = "1" ]]; then RUST_BACKTRACE=1 cargo test --all --verbose --features="all dist-tests ${EXTRA_FEATURES}" test_dist_ -- --test-threads 1; fi
before_deploy:
- "./ci/prep_deploy.sh"
deploy:
api_key:
secure: "BiKnB7yxYvqn6ZISVeBjCQFoSeJKjtAxdEAxlZuNF0YKSwPn7/vQaZjASKORu+Q8uGUTRIKaR0HYiF4mbT5nuKPI0VDsHnGFOWvU/QaZazYbNR1RDbPPXiq6buamGwj3GM2VnV49v/1yVexu6+6D1QcR+tES02lJuhKvDMKU+6+0Fw2HcZbO7E1HFfllnPGvgU42fol16B6D12mqHL91K+zhtNZWKGafbmajSqAXpJW6wCSbygeGgpvWW9PuCQ6SzuxTGF8CGyZFZgSA7SjRAMeRkpg5imeIY6uZxytK/ynGuamYZAcvdrePOg2wjogEvCKxcu4RD0uuHmij2a3CPBdkhWksstyuhNkEv34yeLZRu+7Tbt5w2nEQm1+89pVMdCe8IMI08o0g25UaANpmrL+z1VSd17JNt7OetDcrNnSOrcEBDrI03lD4cRpsMqe/tYJGDkmDxfh8sqjKKHN1Wv9VDl/V8ZiL7hB7mB5ZoamrzXrcz3QiWXCJG8U3MHuyhXWpQNLEQ2ZP/n08mZElkhvx4+0rGUWf9l8iQ9e4zwashki7fD3MN9wG8SskfqsHka5c9uCFMl5T18XZ3t+dlu1Xvpccl0NtXpU5ZHTeJJ36I3AFr9m7uMrYrg09Y8l2yySdIHd2emb09dyZk6Z38mE4+r+Dz+I13PH3TZAC2Wk="
file_glob: true
file: $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