Enable everything but dist-server by default

This commit is contained in:
Mike Hommey 2020-12-10 10:17:57 +09:00
Родитель bcd8312696
Коммит 5e447094d0
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -15,11 +15,11 @@ matrix:
# deployments
- 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
- 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
script: cargo build --release --target $TARGET
addons:
apt:
packages:
@ -34,11 +34,11 @@ before_script:
- if [[ "${DIST_SCCACHE}" = "1" ]]; then export EXTRA_FEATURES="$EXTRA_FEATURES dist-client dist-server"; fi
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 --features="all ${EXTRA_FEATURES}"
- RUST_BACKTRACE=1 cargo test --all --verbose --features="${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
#- 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:
- "./scripts/prep_deploy.sh"

Просмотреть файл

@ -124,7 +124,7 @@ features = [
]
[features]
default = ["dist-client", "s3"]
default = ["all"]
all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure"]
azure = ["chrono", "hyper", "hyperx", "url", "hmac", "md-5", "sha2"]
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:
```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