зеркало из https://github.com/mozilla/sccache.git
Enable everything but dist-server by default
This commit is contained in:
Родитель
bcd8312696
Коммит
5e447094d0
10
.travis.yml
10
.travis.yml
|
@ -15,11 +15,11 @@ matrix:
|
||||||
|
|
||||||
# deployments
|
# deployments
|
||||||
- env: DEPLOY=1 TARGET=x86_64-apple-darwin OPENSSL_STATIC=yes
|
- env: DEPLOY=1 TARGET=x86_64-apple-darwin OPENSSL_STATIC=yes
|
||||||
script: cargo build --release --target $TARGET --features=all
|
script: cargo build --release --target $TARGET
|
||||||
os: osx
|
os: osx
|
||||||
- env: DEPLOY=1 TARGET=x86_64-unknown-linux-musl OPENSSL_DIR=$HOME/openssl-musl
|
- env: DEPLOY=1 TARGET=x86_64-unknown-linux-musl OPENSSL_DIR=$HOME/openssl-musl
|
||||||
before_script: ./scripts/travis-musl-openssl.sh
|
before_script: ./scripts/travis-musl-openssl.sh
|
||||||
script: cargo build --release --target $TARGET --features=all
|
script: cargo build --release --target $TARGET
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
@ -34,11 +34,11 @@ before_script:
|
||||||
- if [[ "${DIST_SCCACHE}" = "1" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES dist-client dist-server"; fi
|
- if [[ "${DIST_SCCACHE}" = "1" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES dist-client dist-server"; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose --features="all ${EXTRA_FEATURES}" || exit 1
|
- cargo build --verbose --features="${EXTRA_FEATURES}" || exit 1
|
||||||
- RUST_BACKTRACE=1 cargo test --all --verbose --no-default-features --features="${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}"
|
- RUST_BACKTRACE=1 cargo test --all --verbose --features="${EXTRA_FEATURES}"
|
||||||
# Requires PR #321
|
# 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
|
#- if [[ "${DIST_SCCACHE}" = "1" ]]; then RUST_BACKTRACE=1 cargo test --all --verbose --features="dist-tests ${EXTRA_FEATURES}" test_dist_ -- --test-threads 1; fi
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- "./scripts/prep_deploy.sh"
|
- "./scripts/prep_deploy.sh"
|
||||||
|
|
|
@ -124,7 +124,7 @@ features = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["dist-client", "s3"]
|
default = ["all"]
|
||||||
all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure"]
|
all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure"]
|
||||||
azure = ["chrono", "hyper", "hyperx", "url", "hmac", "md-5", "sha2"]
|
azure = ["chrono", "hyper", "hyperx", "url", "hmac", "md-5", "sha2"]
|
||||||
s3 = ["chrono", "hyper", "hyperx", "reqwest", "simple-s3", "hmac", "sha-1"]
|
s3 = ["chrono", "hyper", "hyperx", "reqwest", "simple-s3", "hmac", "sha-1"]
|
||||||
|
|
|
@ -120,10 +120,10 @@ Build
|
||||||
If you are building sccache for non-development purposes make sure you use `cargo build --release` to get optimized binaries:
|
If you are building sccache for non-development purposes make sure you use `cargo build --release` to get optimized binaries:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo build --release [--features=all|s3|redis|gcs|memcached|azure]
|
cargo build --release [--no-default-features --features=s3|redis|gcs|memcached|azure]
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, `sccache` supports a local disk cache and S3. Use the `--features` flag to build `sccache` with support for other storage options. Refer the [Cargo Documentation](http://doc.crates.io/manifest.html#the-features-section) for details on how to select features with Cargo.
|
By default, `sccache` builds with support for all storage backends, but individual backends may be disabled by resetting the list of features and enabling all the other backends. Refer the [Cargo Documentation](http://doc.crates.io/manifest.html#the-features-section) for details on how to select features with Cargo.
|
||||||
|
|
||||||
### Building portable binaries
|
### Building portable binaries
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче