forked from tokio-rs/mio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
116 lines (103 loc) · 2.86 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
language: rust
dist: trusty
sudo: required
services: docker
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
script:
- cargo build
- cargo build --no-default-features
- cargo test
matrix:
include:
# Test compatibility
#
# 1.14.0 is the oldest supported version of Rust. This value should NOT be
# changed without prior discussion.
#
# This build also deploys docs
- os: linux
rust: 1.14.0
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
# Ensure that the build works without default features
- cargo build
- cargo build --no-default-features
- cargo test
- cargo test --no-default-features
- cargo doc --no-deps
after_success:
- travis-cargo doc-upload
# Test on latest stable
- os: linux
rust: stable
script:
# Ensure that the build works without default features
- cargo build
- cargo build --no-default-features
- cargo test
- cargo test --no-default-features
# OS X
- os: osx
rust: stable
script:
# Ensure that the build works without default features
- cargo build --no-default-features
- cargo test
- cargo test --no-default-features
# iOS
- os: osx
osx_image: xcode8.2
env: TARGET=x86_64-apple-ios
rust: stable
script:
- cargo build
- CARGO_TARGET_DIR=`pwd` sh ci/run-ios.sh $TARGET
install:
- rustup target add $TARGET
# Android arm-linux-androideabi
- os: linux
env: TARGET=arm-linux-androideabi
rust: stable
script:
- cargo build
- cargo build --no-default-features
- sh ci/run-docker.sh $TARGET;
install:
- rustup target add $TARGET
# Android aarch64-linux-android
- os: linux
env: TARGET=aarch64-linux-android
rust: stable
script:
- cargo build
- cargo build --no-default-features
- sh ci/run-docker.sh $TARGET;
install:
- rustup target add $TARGET
# FreeBSD
- os: linux
env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
install:
- sh ci/trust/install.sh
- source ~/.cargo/env || true
script:
- bash ci/trust/script.sh
- os: linux
env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1
install:
- sh ci/trust/install.sh
- source ~/.cargo/env || true
script:
- bash ci/trust/script.sh
env:
global:
- CRATE_NAME=mio
- secure: "B/5BSBwUX1r+99YJba421+x7eGgm8J+Cuy7nOAenkRsCP+h5JiOFP4IWyoRgmGQoF1dgGwlHuOLBYvcBj1r8p2i3b8akLk/L83iOBbYNkhub6TpDjltTOZ30brrM++LayazAKHg8mixsTiu72cSJr1BiELQae/ABq9QHTj4v3m4="
notifications:
email:
on_success: never