forked from smoltcp-rs/smoltcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (69 loc) · 3.03 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
language: rust
matrix:
include:
### Litmus check that we work on stable/beta
# (we don't, not until slice_rotate lands)
# - rust: stable
# env: FEATURES='default' MODE='test'
# - rust: beta
# env: FEATURES='default' MODE='test'
### Test default configurations
- rust: nightly
env: FEATURES='default' MODE='test'
### Test select feature permutations, chosen to be as orthogonal as possible
- rust: nightly
env: FEATURES='std ethernet phy-raw_socket proto-ipv6 socket-udp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet phy-tap_interface proto-ipv6 socket-udp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv4 proto-igmp socket-raw' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv4 socket-udp socket-tcp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv4 proto-dhcpv4 socket-udp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv6 socket-udp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv6 socket-tcp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv4 socket-icmp socket-tcp' MODE='test'
- rust: nightly
env: FEATURES='std ethernet proto-ipv6 socket-icmp socket-tcp' MODE='test'
### Test select feature permutations, chosen to be as aggressive as possible
- rust: nightly
env: FEATURES='ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp std'
MODE='test'
- rust: nightly
env: FEATURES='ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp alloc'
MODE='test'
- rust: nightly
env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp alloc'
MODE='test'
- rust: nightly
env: FEATURES='ethernet proto-ipv4 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-tcp socket-icmp'
MODE='build'
- rust: nightly
env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
- rust: nightly
env: FEATURES='default' MODE='clippy'
- rust: nightly
env: FEATURES='default' MODE='check --bench bench'
- os: osx
rust: nightly
env: FEATURES='default' MODE='build'
allow_failures:
# something's screwy with Travis (as usual) and cargo-fuzz dies with a LeakSanitizer error
# even when it's successful. Keep this in .travis.yml in case it starts working some day.
- rust: nightly
env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
# Clippy sometimes fails to compile and this shouldn't gate merges
- rust: nightly
env: FEATURES='default' MODE='clippy'
# See if the bench actually breaks
- rust: nightly
env: FEATURES='default' MODE='check --bench bench'
before_script:
- if [ "$MODE" == "fuzz run" ]; then cargo install cargo-fuzz; fi
- if [ "$MODE" == "clippy" ]; then cargo install clippy; fi
script:
- cargo $MODE --no-default-features --features "$FEATURES" $ARGS