зеркало из https://github.com/mozilla/sccache.git
54 строки
2.1 KiB
YAML
54 строки
2.1 KiB
YAML
language: rust
|
|
cache: cargo
|
|
|
|
matrix:
|
|
include:
|
|
# OS compat
|
|
- os: linux
|
|
- os: osx
|
|
|
|
# rustc version compat
|
|
- rust: 1.27.0 # oldest supported version, keep in sync with README.md
|
|
- rust: beta
|
|
- rust: nightly
|
|
|
|
# deployments
|
|
- env: DEPLOY=1 TARGET=x86_64-apple-darwin
|
|
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: ./scripts/travis-musl-openssl.sh
|
|
script: cargo build --release --target $TARGET --features=all
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- musl-tools
|
|
allow_failures:
|
|
- rust: nightly
|
|
|
|
before_script:
|
|
- if [[ "${TRAVIS_RUST_VERSION}" = "nightly" ]]; then export EXTRA_FEATURES=unstable; 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}"
|
|
|
|
before_deploy:
|
|
- name="sccache-$TRAVIS_TAG-$TARGET"
|
|
- mkdir $name
|
|
- cp target/$TARGET/release/sccache $name/
|
|
- cp README.md LICENSE $name/
|
|
- tar czvf $name.tar.gz $name
|
|
|
|
deploy:
|
|
api_key:
|
|
secure: rF9ZCpzIJ+pYqxvS20omuTfQ5bN/W81malxwEyRobZc1OrcYK3Gdmq9wwxayx75PgDlXJvIMkuBrkRq1Mc1VprKOLmlg8yPjVm+5G1JySrpZ0yhs2+838gUJkdWESKtZRZ8xhKz2H1tK1a9WMXzWrW/hIBIWA2aZqC7hUTRvIyENE8hDec+7kTQCuNXkcsCL4mF9G77IPQhGR6CYj6Sg5j0u4NsIBiYnd3C218BUkZS15nE37Zj2o3C/ekQsUfAi8e3ALE6WEU+KDRccWT3/F8FMItxlJ5c2Wt4lUL5FC4+b5Vtz6sLBklKc8kex+ClFga5Hq6FDwBnotL8XsBZGiWPssdcZYVWtjHsXT1XeQOrtgdN+VN0IXP7/QzsEHSIADw9RE5S0F9RTKO+ghPL5YU1t7ZbWRqMy+AQDbFreIRftGWHyaRzmmxdea+XdhTMzv8Xyccakek+2HmrkvxC5KBtVVQUcjtf/mdEfF696N+DN4A+dkai15uk8C5vPGWDZF3SDlIOY23dOnMzMkC6qEFrzFjCwJ6mRKUhYI7mU4weMLekKq0dJa7xQuGNP7yuwQ4I+S/X00ukAcvNCLmWWjRRBxxeTVQJDwRdSepbzSkFqP6noopnOw6EIo6YV1EY9ipoX1ahaFVC8480uFFQI1BjVefTvFcflbCiSCerQECU=
|
|
file_glob: true
|
|
file: sccache-$TRAVIS_TAG-$TARGET.tar.gz
|
|
on:
|
|
condition: $DEPLOY = 1
|
|
tags: true
|
|
provider: releases
|
|
skip_cleanup: true
|