forked from seanmonstar/reqwest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (49 loc) · 1.63 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
language: rust
matrix:
fast_finish: true
allow_failures:
- rust: nightly
include:
- os: osx
rust: stable
- rust: stable
- rust: beta
- rust: nightly
# Disable default-tls
- rust: stable
env: FEATURES="--no-default-features"
# rustls-tls
- rust: stable
env: FEATURES="--no-default-features --features rustls-tls"
# default-tls and rustls-tls
- rust: stable
env: FEATURES="--features rustls-tls"
# default-tls, rustls, and socks!
- rust: stable
env: FEATURES="--features rustls-tls,socks"
- rust: stable
env: FEATURES="--features hyper-011"
- rust: stable
env: FEATURES="--features trust-dns"
# android
- 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"
# disable default-tls feature since cross-compiling openssl is dragons
script: cargo build --target "$TARGET" --no-default-features
# minimum version
- rust: 1.31.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