language: rust
matrix:
fast_finish: true
allow_failures:
- rust: nightly
include:
- os: osx
rust: stable
- rust: stable
- rust: beta
- rust: nightly
- rust: stable
env: FEATURES="--no-default-features"
- rust: stable
env: FEATURES="--no-default-features --features rustls-tls"
- rust: stable
env: FEATURES="--features rustls-tls"
- rust: stable
env: FEATURES="--features rustls-tls,socks"
- rust: stable
env: FEATURES="--features hyper-011"
- rust: stable
env: FEATURES="--features trust-dns"
- rust: stable
env: TARGET=aarch64-linux-android
before_install:
- wget https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip;
- unzip -qq android-ndk*.zip;
- android-ndk*/build/tools/make_standalone_toolchain.py --arch arm64 --api 21 --install-dir /tmp/android-toolchain;
- export PATH=/tmp/android-toolchain/bin:$PATH;
install: rustup target add "$TARGET"
script: cargo build --target "$TARGET" --no-default-features
- rust: 1.36.0
script: cargo build
sudo: false
dist: trusty
env:
global:
- REQWEST_TEST_BODY_FULL=1
script:
- cargo build $FEATURES
- cargo test -v $FEATURES -- --test-threads=1